|
Download README.md from espnet/librispeech_multiblank_transducer_8421: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/espnet/librispeech_multiblank_transducer_8421/resolve/main/README.md
- Command line
-
hf download hf://espnet/librispeech_multiblank_transducer_8421/README.md
-
curl -L -o README.md https://huggingface.co/espnet/librispeech_multiblank_transducer_8421/resolve/main/README.md
534 Bytes
metadata
pipeline_tag: automatic-speech-recognition
Usage
import librosa
from espnet2.bin.asr_inference import Speech2Text
speech2text = Speech2Text.from_pretrained(model_tag="espnet/librispeech_multiblank_transducer_8421")
# librosa resamples and mixes to one channel, so any file works; 16000 is
# what nearly every espnet recogniser is trained on - check this model's
# config if its audio is not 16 kHz
speech, rate = librosa.load("audio.wav", sr=16000, mono=True)
text, *_ = speech2text(speech)[0]
print(text)