Update README.md

This commit is contained in:
Jonatas Grosman 2022-02-22 21:45:06 +00:00 committed by huggingface-web
parent a35ec725dd
commit 62592d7cef
1 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ model-index:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice pt
name: Common Voice en
type: common_voice
args: en
metrics:
@ -73,15 +73,15 @@ The script used for training can be found here: https://github.com/jonatasgrosma
The model can be used directly (without a language model) as follows...
Using the [ASRecognition](https://github.com/jonatasgrosman/asrecognition) library:
Using the [HuggingSound](https://github.com/jonatasgrosman/huggingsound) library:
```python
from asrecognition import ASREngine
asr = ASREngine("en", model_path="jonatasgrosman/wav2vec2-large-xlsr-53-english")
from huggingsound import SpeechRecognitionModel
model = SpeechRecognitionModel("jonatasgrosman/wav2vec2-large-xlsr-53-english")
audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"]
transcriptions = asr.transcribe(audio_paths)
transcriptions = model.transcribe(audio_paths)
```
Writing your own inference script: