Automatic Speech Recognition
NeMo
Japanese
NeMo
fujimotos commited on
Commit
3369340
1 Parent(s): f889979

Update example code to use latest ReazonSpeech API

Browse files

Signed-off-by: Fujimoto Seiji <[email protected]>

Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -41,10 +41,11 @@ We recommend to use this model through our
41
  library.
42
 
43
  ```
44
- from reazonspeech.nemo.asr import load_model, transcribe
45
 
 
46
  model = load_model()
47
- ret = transcribe("speech.wav", model)
48
  print(ret.text)
49
  ```
50
 
 
41
  library.
42
 
43
  ```
44
+ from reazonspeech.nemo.asr import load_model, transcribe, audio_from_path
45
 
46
+ audio = audio_from_path("speech.wav")
47
  model = load_model()
48
+ ret = transcribe(model, audio)
49
  print(ret.text)
50
  ```
51