Skip to content

Added tests + updated docs for data prep mp3 support#51

Merged
okhleif-10 merged 2 commits into
mmqna-phase3from
omar/asr-mp3
Feb 5, 2025
Merged

Added tests + updated docs for data prep mp3 support#51
okhleif-10 merged 2 commits into
mmqna-phase3from
omar/asr-mp3

Conversation

@okhleif-10
Copy link
Copy Markdown
Collaborator

@okhleif-10 okhleif-10 commented Feb 4, 2025

Description

Added tests and updated documentation for mp3 ingestion feature.

Issues

opea-project#1549

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

N/A

Tests

Ran tests locally

Signed-off-by: okhleif-IL <omar.khleif@intel.com>
@okhleif-10 okhleif-10 requested a review from mhbuehler as a code owner February 4, 2025 00:32
wget https://github.com/intel/intel-extension-for-transformers/raw/main/intel_extension_for_transformers/neural_chat/assets/audio/sample.wav -O ${audio_fn}

export audio_mp3_fn="sample_audio.mp3"
wget wget https://audio-samples.github.io/samples/mp3/blizzard_biased/sample-0.mp3 -O ${audio_mp3_fn}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
wget wget https://audio-samples.github.io/samples/mp3/blizzard_biased/sample-0.mp3 -O ${audio_mp3_fn}
wget https://audio-samples.github.io/samples/mp3/blizzard_biased/sample-0.mp3 -O ${audio_mp3_fn}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, not sure on the licensing of this blizzard dataset. It might be safer to use another ITREX sample. For example:

wget https://github.com/intel/intel-extension-for-transformers/raw/refs/tags/v1.5/intel_extension_for_transformers/neural_chat/ui/customized/talkingbot/src/lib/components/talkbot/assets/mid-age-man.mp3

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another idea is that instead of adding another audio file download to this example (the list of downloads is getting long), maybe the documentation should list what types of files are supported. For example, even for image ingestion, we support png, gif, and jpg, but I don't see that listed in the documentation. 🤔

wget wget https://audio-samples.github.io/samples/mp3/blizzard_biased/sample-0.mp3 -O ${audio_mp3_fn}
```

Test dataprep microservice with generating transcript. This command updates a knowledge base by uploading a local video .mp4 and an audio .wav file.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add .mp3 to this sentence (if we are keeping mp3 as part of the example)

cd $LOG_PATH
echo "Downloading image and video"
wget https://github.com/docarray/docarray/blob/main/tests/toydata/image-data/apple.png?raw=true -O ${image_fn}
wget https://audio-samples.github.io/samples/mp3/blizzard_biased/sample-0.mp3 -O ${audio_fn}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment about swapping this for an ITREX file

Signed-off-by: okhleif-IL <omar.khleif@intel.com>
Copy link
Copy Markdown
Collaborator

@dmsuehir dmsuehir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@okhleif-10 okhleif-10 merged commit f076c55 into mmqna-phase3 Feb 5, 2025
@dmsuehir dmsuehir changed the title Added tests + updated docs for asr mp3 change Added tests + updated docs for data prep mp3 support Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants