MMS-TTS Kinyarwanda β ONNX export
ONNX export of facebook/mms-tts-kin (Meta MMS, VITS) for use with onnxruntime. Exported with optimum.
License of the underlying model: CC-BY-NC 4.0 (non-commercial).
Getting natural, professional-sounding output
The model is char-level: it garbles or drops digits and symbols. For speech that sounds like a real Rwandan announcer, normalize the text before tokenizing:
- Numbers β Kinyarwanda words:
2500β ibihumbi bibiri na magana atanu; prices2500 RWFβ amafaranga ibihumbi bibiri na magana atanu; percentages15%β cumi na gatanu ku ijana; clock times14:30β saa cumi na kane n'iminota mirongo itatu; phone numbers digit-by-digit. - Fold characters outside the vocab:
Γ©βe,Γ§βc,qβk,xβgs, etc. (vocab isaβzminusq/x, plus' -and digits). - Chunk on sentence/comma boundaries and join with 130β280 ms of silence β VITS run-on delivery becomes a calm newsreader rhythm.
- Steadier delivery:
speaking_rate β 0.92,noise_scale β 0.6,noise_scale_duration β 0.7, and a fixed seed for a consistent voice.
A hosted implementation of all of this (REST POST /tts β WAV) runs at
gloire2/languagetool β
see its app.py for the reference normalizer (normalize_kinyarwanda).
Tokenization (this ONNX export)
Lowercase β per-char vocab lookup β interleave pad id 0 between ids
([0, id, 0, id, β¦, 0]), inputs input_ids + attention_mask (int64),
output waveform (float32 @ 16 kHz).
- Downloads last month
- 229
Model tree for gloire2/mms-tts-kin-onnx
Base model
facebook/mms-tts-kin