jonatasgrosman commited on
Commit
b58d25d
1 Parent(s): d7f8fb8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -5
README.md CHANGED
@@ -73,15 +73,15 @@ The script used for training can be found here: https://github.com/jonatasgrosma
73
 
74
  The model can be used directly (without a language model) as follows...
75
 
76
- Using the [ASRecognition](https://github.com/jonatasgrosman/asrecognition) library:
77
 
78
  ```python
79
- from asrecognition import ASREngine
80
-
81
- asr = ASREngine("ru", model_path="jonatasgrosman/wav2vec2-large-xlsr-53-russian")
82
 
 
83
  audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"]
84
- transcriptions = asr.transcribe(audio_paths)
 
85
  ```
86
 
87
  Writing your own inference script:
73
 
74
  The model can be used directly (without a language model) as follows...
75
 
76
+ Using the [HuggingSound](https://github.com/jonatasgrosman/huggingsound) library:
77
 
78
  ```python
79
+ from huggingsound import SpeechRecognitionModel
 
 
80
 
81
+ model = SpeechRecognitionModel("jonatasgrosman/wav2vec2-large-xlsr-53-russian")
82
  audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"]
83
+
84
+ transcriptions = model.transcribe(audio_paths)
85
  ```
86
 
87
  Writing your own inference script: