Views
No views yet
facebook/mms-tts
checkpoints, converted using the approach documented by the sherpa-onnx
project (https://k2-fsa.github.io/sherpa/onnx/tts/mms.html), for on-device
mobile inference via the sherpa_onnx runtime. The weights are unmodified
from Meta AI's originals -- no fine-tuning has been applied, only a format
conversion (PyTorch checkpoint -> ONNX) and vocabulary re-export
(vocab.txt -> tokens.txt).| Language | Status | ONNX size | Sample rate |
|---|---|---|---|
Yoruba (yor) | Converted | 108.8 MB | 16000 Hz |
Hausa (hau) | Converted | 108.8 MB | 16000 Hz |
Igbo (ibo) | No raw checkpoint found (tried models/ibo, models/ig, models/igbo, models/ib, full_models/ibo, full_models/ig). A separate transformers-wrapped facebook/mms-tts-ibo repo does not exist, for reference -- not usable for this notebook's ONNX pipeline either way. | -- | -- |
Nigerian Pidgin (pcm) | Converted | 108.8 MB | 16000 Hz |
yor/, hau/, ibo/,
pcm/ -- whichever succeeded) containing model.onnx and tokens.txt.@article{pratap2023mms,
title={Scaling Speech Technology to 1,000+ Languages},
author={Vineel Pratap and Andros Tjandra and Bowen Shi and Paden Tomasello
and Arun Babu and Sayani Kundu and Ali Elkahky and Zhaoheng Ni and
Apoorv Vyas and Maryam Fazel-Zarandi and Alexei Baevski and Yossi Adi
and Xiaohui Zhang and Wei-Ning Hsu and Alexis Conneau and Michael Auli},
journal={arXiv},
year={2023}
}1# pip install sherpa-onnx
2import sherpa_onnx
3
4tts = sherpa_onnx.OfflineTts(
5 sherpa_onnx.OfflineTtsConfig(
6 model=sherpa_onnx.OfflineTtsModelConfig(
7 vits=sherpa_onnx.OfflineTtsVitsModelConfig(
8 model="yor/model.onnx",
9 tokens="yor/tokens.txt",
10 ),
11 ),
12 )
13)
14audio = tts.generate("Your Yoruba text here")