Downloads · 30 days
3
100% of all-time downloads
espnet/zh_openslr38
zh_openslr38 is a automatic speech recognition model from espnet. Use it when you need speech turned into text. The card lists the license as mit.
Downloads · 30 days
3
100% of all-time downloads
All-time downloads
3
Public
Repo size
6.3 GB
Likes
0
Public
Click a slice to open those files.
.pth5.8 GB · 88%
From the Hugging Face model README
import librosa
from espnet2.bin.asr_inference import Speech2Text
speech2text = Speech2Text.from_pretrained(model_tag="espnet/zh_openslr38")
# 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)