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