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 Wolof)
|
48 |
```python
|
49 |
-
from speechbrain.pretrained import
|
50 |
-
asr_model =
|
51 |
asr_model.transcribe_file('speechbrain/asr-wav2vec2-dvoice-wolof/example_wolof.wav')
|
52 |
```
|
53 |
|
|
|
46 |
|
47 |
# Transcribing your own audio files (in Wolof)
|
48 |
```python
|
49 |
+
from speechbrain.pretrained import EncoderASR
|
50 |
+
asr_model = EncoderASR.from_hparams(source="speechbrain/asr-wav2vec2-dvoice-wolof", savedir="pretrained_models/asr-wav2vec2-dvoice-wolof")
|
51 |
asr_model.transcribe_file('speechbrain/asr-wav2vec2-dvoice-wolof/example_wolof.wav')
|
52 |
```
|
53 |
|