Adel-Moumen
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -74,11 +74,10 @@ Please notice that we encourage you to read our tutorials and learn more about
|
|
74 |
### Transcribing your own audio files (in French)
|
75 |
|
76 |
```python
|
77 |
-
from speechbrain.
|
78 |
|
79 |
asr_model = EncoderASR.from_hparams(source="speechbrain/asr-wav2vec2-commonvoice-14-fr", savedir="pretrained_models/asr-wav2vec2-commonvoice-14-fr")
|
80 |
asr_model.transcribe_file("speechbrain/asr-wav2vec2-commonvoice-14-fr/example-fr.wav")
|
81 |
-
|
82 |
```
|
83 |
### Inference on GPU
|
84 |
To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
|
|
|
74 |
### Transcribing your own audio files (in French)
|
75 |
|
76 |
```python
|
77 |
+
from speechbrain.inference.ASR import EncoderASR
|
78 |
|
79 |
asr_model = EncoderASR.from_hparams(source="speechbrain/asr-wav2vec2-commonvoice-14-fr", savedir="pretrained_models/asr-wav2vec2-commonvoice-14-fr")
|
80 |
asr_model.transcribe_file("speechbrain/asr-wav2vec2-commonvoice-14-fr/example-fr.wav")
|
|
|
81 |
```
|
82 |
### Inference on GPU
|
83 |
To perform inference on the GPU, add `run_opts={"device":"cuda"}` when calling the `from_hparams` method.
|