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