Update example code to use latest ReazonSpeech API
Browse filesSigned-off-by: Fujimoto Seiji <fujimoto@ceptord.net>
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(
|
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 |
|