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