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
|
name: Automatic Speech Recognition
|
||||||
type: automatic-speech-recognition
|
type: automatic-speech-recognition
|
||||||
dataset:
|
dataset:
|
||||||
name: Common Voice pt
|
name: Common Voice en
|
||||||
type: common_voice
|
type: common_voice
|
||||||
args: en
|
args: en
|
||||||
metrics:
|
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...
|
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
|
```python
|
||||||
from asrecognition import ASREngine
|
from huggingsound import SpeechRecognitionModel
|
||||||
|
|
||||||
asr = ASREngine("en", model_path="jonatasgrosman/wav2vec2-large-xlsr-53-english")
|
|
||||||
|
|
||||||
|
model = SpeechRecognitionModel("jonatasgrosman/wav2vec2-large-xlsr-53-english")
|
||||||
audio_paths = ["/path/to/file.mp3", "/path/to/another_file.wav"]
|
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:
|
Writing your own inference script:
|
||||||
|
|
Loading…
Reference in New Issue