poonehmousavi commited on
Commit
0847e95
1 Parent(s): 5606bad

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -74,10 +74,10 @@ Please notice that we encourage you to read our tutorials and learn more about
74
  ### Transcribing your own audio files (in English)
75
 
76
  ```python
77
- from speechbrain.pretrained import EncoderASR
78
 
79
  asr_model = EncoderASR.from_hparams(source="speechbrain/asr-wav2vec2-commonvoice-14-en", savedir="pretrained_models/asr-wav2vec2-commonvoice-14-en")
80
- asr_model.transcribe_file("speechbrain/asr-wav2vec2-commonvoice-14-en/example-en.wav")
81
 
82
  ```
83
  ### Inference on GPU
 
74
  ### Transcribing your own audio files (in English)
75
 
76
  ```python
77
+ from speechbrain.inference.ASR import EncoderASR
78
 
79
  asr_model = EncoderASR.from_hparams(source="speechbrain/asr-wav2vec2-commonvoice-14-en", savedir="pretrained_models/asr-wav2vec2-commonvoice-14-en")
80
+ asr_model.transcribe_file("speechbrain/asr-wav2vec2-commonvoice-14-en/example_en.wav")
81
 
82
  ```
83
  ### Inference on GPU