speechbrainteam
commited on
Commit
·
0639fed
1
Parent(s):
49c8ad1
Update README.md
Browse files
README.md
CHANGED
@@ -56,9 +56,9 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
56 |
### Transcribing your own audio files (in English)
|
57 |
|
58 |
```python
|
59 |
-
from speechbrain.pretrained import
|
60 |
|
61 |
-
asr_model =
|
62 |
asr_model.transcribe_file("speechbrain/asr-transformer-transformerlm-librispeech/example.wav")
|
63 |
|
64 |
```
|
|
|
56 |
### Transcribing your own audio files (in English)
|
57 |
|
58 |
```python
|
59 |
+
from speechbrain.pretrained import EncoderDecoderASR
|
60 |
|
61 |
+
asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-transformer-transformerlm-librispeech", savedir="pretrained_models/asr-transformer-transformerlm-librispeech")
|
62 |
asr_model.transcribe_file("speechbrain/asr-transformer-transformerlm-librispeech/example.wav")
|
63 |
|
64 |
```
|