Update README.md
This commit is contained in:
parent
a35ec725dd
commit
62592d7cef
12
README.md
12
README.md
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue