ksingla025 commited on
Commit
afc6339
1 Parent(s): 9eb119f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -0
README.md CHANGED
@@ -17,3 +17,21 @@ To use this model, you need to install the NeMo library:
17
 
18
  ```bash
19
  pip install nemo_toolkit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  ```bash
19
  pip install nemo_toolkit
20
+ ```
21
+
22
+ ### How to run
23
+
24
+ ```python
25
+ import nemo.collections.asr as nemo_asr
26
+
27
+ # Step 1: Load the ASR model from Hugging Face
28
+ model_name = 'WhissleAI/1step_asr_nl_slurp'
29
+ asr_model = nemo_asr.models.EncDecCTCModel.from_pretrained(model_name)
30
+
31
+ # Step 2: Provide the path to your audio file
32
+ audio_file_path = '/path/to/your/audio_file.wav'
33
+
34
+ # Step 3: Transcribe the audio
35
+ transcription = asr_model.transcribe(paths2audio_files=[audio_file_path])
36
+ print(f'Transcription: {transcription[0]}')
37
+ ```