Massively multilingual speech recognizer from Meta AI. The model is a 1B-param transformer encoder, with a CTC head over 8065 character labels and a language identification head over 60 language ID labels. It is trained on Common Voice (version 6.1, December 2020 release) and VoxPopuli. After training on Common Voice and VoxPopuli, the model is trained on Common Voice only. The labels are unnormalized character-level transcripts (punctuation and capitalization are not removed). The model takes as input Mel filterbank features from a 16Khz audio signal.
Authors: Loren Lugosch, Tatiana Likhomanenko, Gabriel Synnaeve, Ronan Collobert
@article{lugosch2021pseudo,
title={Pseudo-Labeling for Massively Multilingual Speech Recognition},
author={Lugosch, Loren and Likhomanenko, Tatiana and Synnaeve, Gabriel and Collobert, Ronan},
journal={ICASSP},
year={2022}
}
Contribution
A huge thanks to
Chan Woo Kim
for porting the model from Flashlight C++ to PyTorch.
Training method
For more information on how the model was trained, please take a look at the
official paper
.
Usage
To transcribe audio files the model can be used as a standalone acoustic model as follows:
import torch
import torchaudio
from datasets import load_dataset
from transformers import MCTCTForCTC, MCTCTProcessor
model = MCTCTForCTC.from_pretrained("speechbrain/m-ctc-t-large")
processor = MCTCTProcessor.from_pretrained("speechbrain/m-ctc-t-large")
# load dummy dataset and read soundfiles
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
# feature extraction
input_features = processor(ds[0]["audio"]["array"], sampling_rate=ds[0]["audio"]["sampling_rate"], return_tensors="pt").input_features
# retrieve logitswith torch.no_grad():
logits = model(input_features).logits
# take argmax and decode
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.batch_decode(predicted_ids)
Results for Common Voice, averaged over all languages:
Character error rate (CER)
:
"Valid"
"Test"
21.4
23.3
Questions & Help
If you have questions regarding this model or need help,
please consider opening a discussion or pull request on this repo
and tag @lorenlugosch, @cwkeam or @patrickvonplaten
Runs of speechbrain m-ctc-t-large on huggingface.co
940
Total runs
4
24-hour runs
-23
3-day runs
-32
7-day runs
389
30-day runs
More Information About m-ctc-t-large huggingface.co Model
m-ctc-t-large huggingface.co is an AI model on huggingface.co that provides m-ctc-t-large's model effect (), which can be used instantly with this speechbrain m-ctc-t-large model. huggingface.co supports a free trial of the m-ctc-t-large model, and also provides paid use of the m-ctc-t-large. Support call m-ctc-t-large model through api, including Node.js, Python, http.
m-ctc-t-large huggingface.co is an online trial and call api platform, which integrates m-ctc-t-large's modeling effects, including api services, and provides a free online trial of m-ctc-t-large, you can try m-ctc-t-large online for free by clicking the link below.
speechbrain m-ctc-t-large online free url in huggingface.co:
m-ctc-t-large is an open source model from GitHub that offers a free installation service, and any user can find m-ctc-t-large on GitHub to install. At the same time, huggingface.co provides the effect of m-ctc-t-large install, users can directly use m-ctc-t-large installed effect in huggingface.co for debugging and trial. It also supports api for free installation.