AstralZander
commited on
Commit
•
a56fc2a
1
Parent(s):
634f981
Update README.md
Browse files
README.md
CHANGED
@@ -8,4 +8,13 @@ language:
|
|
8 |
---
|
9 |
facebook/wav2vec2-xls-r-300m fine-tuned on openslr (SLR86) and mozilla-foundation/common_voice_12_0 for Yoruba language.
|
10 |
|
11 |
-
WER: 0.51
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
---
|
9 |
facebook/wav2vec2-xls-r-300m fine-tuned on openslr (SLR86) and mozilla-foundation/common_voice_12_0 for Yoruba language.
|
10 |
|
11 |
+
WER: 0.51
|
12 |
+
|
13 |
+
```
|
14 |
+
from huggingsound import SpeechRecognitionModel
|
15 |
+
model = SpeechRecognitionModel("AstralZander/yoruba_ASR")
|
16 |
+
audio_paths = [audio_path] # List with paths to audio
|
17 |
+
transcriptions = model.transcribe(audio_paths)
|
18 |
+
transcriptions # List of transcriptions, timestamps and probabilities
|
19 |
+
transcriptions[ind_audio]['transcription'] # Transcription of audio with the ind_audio index from the audio_paths list
|
20 |
+
```
|