Commit
·
acd451a
1
Parent(s):
a6ebb11
Update README.md
Browse files
README.md
CHANGED
|
@@ -58,9 +58,10 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
| 58 |
### Transcribing your own audio files (in French)
|
| 59 |
|
| 60 |
```python
|
| 61 |
-
from speechbrain.
|
| 62 |
-
|
| 63 |
-
asr_model.
|
|
|
|
| 64 |
```
|
| 65 |
|
| 66 |
### Inference on GPU
|
|
|
|
| 58 |
### Transcribing your own audio files (in French)
|
| 59 |
|
| 60 |
```python
|
| 61 |
+
from speechbrain.inference.ASR import EncoderDecoderASR
|
| 62 |
+
|
| 63 |
+
asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-crdnn-commonvoice-14-fr", savedir="pretrained_models/asr-crdnn-commonvoice-14-fr")
|
| 64 |
+
asr_model.transcribe_file("speechbrain/asr-crdnn-commonvoice-14-fr/example-fr.wav")
|
| 65 |
```
|
| 66 |
|
| 67 |
### Inference on GPU
|