Downloads · 30 days
4
22% of all-time downloads
bartelds/ctc-baseline_mms_set_2
ctc-baseline_mms_set_2 is a machine learning model from bartelds. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-4.0.
This repository contains a CTC-Baseline MMS-based automatic speech recognition (ASR) model trained with ESPnet. The model was trained on balanced training data from set 2.
Downloads · 30 days
4
22% of all-time downloads
All-time downloads
18
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.pth1.3 GB · 100%
From the Hugging Face model README
This repository contains a CTC-Baseline MMS-based automatic speech recognition (ASR) model trained with ESPnet.
The model was trained on balanced training data from set 2.
This model is intended for ASR. Users can run inference using the provided checkpoint (valid.loss.best.pth) and configuration file (config.yaml):
import soundfile as sf
from espnet2.bin.asr_inference import Speech2Text
asr_train_config = "ctc-baseline_mms_set_2/config.yaml"
asr_model_file = "ctc-baseline_mms_set_2/valid.loss.best.pth"
model = Speech2Text.from_pretrained(
asr_train_config=asr_train_config,
asr_model_file=asr_model_file
)
speech, _ = sf.read("input.wav")
text, *_ = model(speech)[0]
print("Recognized text:", text)
config.yaml and checkpoint file.config.yaml are available at the indicated relative paths.