transiteration
commited on
Commit
•
739f8f6
1
Parent(s):
6957526
Update README.md
Browse files
README.md
CHANGED
@@ -28,20 +28,20 @@ NVIDIA NeMo 1.7.0
|
|
28 |
pip install nemo_toolkit['all']
|
29 |
```
|
30 |
|
31 |
-
## Model Usage
|
32 |
|
33 |
The model is accessible within the NeMo toolkit [1] and can serve as a pre-trained checkpoint for either making inferences or for fine-tuning on a different dataset.
|
34 |
|
35 |
-
|
36 |
```
|
37 |
import nemo.collections.asr as nemo_asr
|
38 |
asr_model = nemo_asr.models.EncDecCTCModel.restore_from(restore_path="stt_kz_quartznet15x5.nemo")
|
39 |
```
|
40 |
-
|
41 |
```
|
42 |
asr_model.transcribe(['sample_kz.wav'])
|
43 |
```
|
44 |
-
|
45 |
```
|
46 |
python3 transcribe_speech.py model_path=stt_kz_quartznet15x5.nemo audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
|
47 |
```
|
|
|
28 |
pip install nemo_toolkit['all']
|
29 |
```
|
30 |
|
31 |
+
## Model Usage:
|
32 |
|
33 |
The model is accessible within the NeMo toolkit [1] and can serve as a pre-trained checkpoint for either making inferences or for fine-tuning on a different dataset.
|
34 |
|
35 |
+
#### How to Import
|
36 |
```
|
37 |
import nemo.collections.asr as nemo_asr
|
38 |
asr_model = nemo_asr.models.EncDecCTCModel.restore_from(restore_path="stt_kz_quartznet15x5.nemo")
|
39 |
```
|
40 |
+
#### How to Transcribe Single Audio File
|
41 |
```
|
42 |
asr_model.transcribe(['sample_kz.wav'])
|
43 |
```
|
44 |
+
#### How to Transcribe Multiple Audio Files
|
45 |
```
|
46 |
python3 transcribe_speech.py model_path=stt_kz_quartznet15x5.nemo audio_dir="<DIRECTORY CONTAINING AUDIO FILES>"
|
47 |
```
|