Update README.md
Browse files
README.md
CHANGED
|
@@ -39,8 +39,8 @@ pipe = pipeline("automatic-speech-recognition", model="nambn0321/ASR_french_3",
|
|
| 39 |
|
| 40 |
pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language="fr", task="transcribe")
|
| 41 |
|
| 42 |
-
# Load data
|
| 43 |
-
ds_mcv_test = load_dataset("
|
| 44 |
test_segment = next(iter(ds_mcv_test))
|
| 45 |
waveform = test_segment["audio"]
|
| 46 |
|
|
|
|
| 39 |
|
| 40 |
pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language="fr", task="transcribe")
|
| 41 |
|
| 42 |
+
# Load data (this is an example but when you load your own data, make sure to use torchaudio or librosa to load the audio into the dataset)
|
| 43 |
+
ds_mcv_test = load_dataset("mozilla-foundation/common_voice_11_0", "fr", split="test", streaming=True)
|
| 44 |
test_segment = next(iter(ds_mcv_test))
|
| 45 |
waveform = test_segment["audio"]
|
| 46 |
|