jonatasgrosman
commited on
Commit
·
9cc8676
1
Parent(s):
5110450
Update README.md
Browse files
README.md
CHANGED
@@ -44,12 +44,12 @@ The script used for training can be found here: https://github.com/jonatasgrosma
|
|
44 |
|
45 |
The model can be used directly (without a language model) as follows...
|
46 |
|
47 |
-
Using the [
|
48 |
|
49 |
```python
|
50 |
from asrecognition import ASREngine
|
51 |
|
52 |
-
asr = ASREngine("ru")
|
53 |
|
54 |
audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"]
|
55 |
transcriptions = asr.transcribe(audio_paths)
|
|
|
44 |
|
45 |
The model can be used directly (without a language model) as follows...
|
46 |
|
47 |
+
Using the [ASRecognition](https://github.com/jonatasgrosman/asrecognition) library:
|
48 |
|
49 |
```python
|
50 |
from asrecognition import ASREngine
|
51 |
|
52 |
+
asr = ASREngine("ru", model_path="jonatasgrosman/wav2vec2-large-xlsr-53-russian")
|
53 |
|
54 |
audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"]
|
55 |
transcriptions = asr.transcribe(audio_paths)
|