Update README.md
Browse files
README.md
CHANGED
@@ -46,8 +46,8 @@ Please notice that we encourage you to read the SpeechBrain tutorials and learn
|
|
46 |
|
47 |
# Transcribing your own audio files (in Fongbe)
|
48 |
```python
|
49 |
-
from speechbrain.pretrained import
|
50 |
-
asr_model =
|
51 |
asr_model.transcribe_file('speechbrain/asr-wav2vec2-dvoice-fongbe/example_fongbe.wav')
|
52 |
```
|
53 |
|
|
|
46 |
|
47 |
# Transcribing your own audio files (in Fongbe)
|
48 |
```python
|
49 |
+
from speechbrain.pretrained import EncoderASR
|
50 |
+
asr_model = EncoderASR.from_hparams(source="speechbrain/asr-wav2vec2-dvoice-fongbe", savedir="pretrained_models/asr-wav2vec2-dvoice-fongbe")
|
51 |
asr_model.transcribe_file('speechbrain/asr-wav2vec2-dvoice-fongbe/example_fongbe.wav')
|
52 |
```
|
53 |
|