text-to-speech · VITS Akan / Twi (aka) · q4 · WASM · 111.30 MB · CC-BY-NC-4.0
Meta MMS-TTS Akan (Twi)
Meta's Massively Multilingual Speech VITS synthesizer for Akan / Twi
(facebook/mms-tts-aka,
exported to 111.30 MB 4-bit ONNX in
onnx-community/mms-tts-aka-ONNX)
turns native Akan orthography (ɛ, ɔ, á, ʼ)
directly into a 16,000 Hz mono speech waveform off the main thread on CPU WebAssembly —
no separate vocoder and no server audio egress.
1 · On-device model (111.30 MB q4 WASM · model_q4.onnx + vocab.json)
2 · Live Akan / Twi VITS Speech Synthesizer
Pick one of 5 Twi phrases, insert Akan vowels (ɛ, ɔ, á),
paste anywhere via Ctrl/Cmd+V, or drop/upload a .txt, .md,
.csv, or .json file. Click Resample prosody to hear the
VITS stochastic duration predictor vary timing on the exact same text.
English gloss: —
.txt, .md, .csv, or .json file here, paste via clipboard, or choose a file:
Prepare Meta MMS-TTS Akan above to synthesize 16 kHz Twi speech locally in CPU WebAssembly.
3 · See Inside VitsTokenizer: 30-Symbol Akan Vocab & Stochastic Runs
onnx-community/mms-tts-aka-ONNX uses a compact 30-symbol character vocabulary
(is_uroman: false, add_blank: true, pad_token: "a" = ID 0).
Akan letters ɛ (#14), ɔ (#27), and á (#11) map directly, while
OOV punctuation and non-Akan letters (c, j, q, v, x, z) are dropped before blank-token
interleaving. Repeated runs of the same text sample different durations via the VITS stochastic duration predictor.
Live Character Token IDs & OOV Drops (vocab.json)
Synthesize Akan text to inspect character IDs and OOV drops.
4 · Why It Matters & At a Glance
Akan (including Asante Twi, Akuapem Twi, and Fante) is spoken by tens of millions across Ghana and the
diaspora, yet commercial cloud TTS rarely supports Akan orthography natively. Running
facebook/mms-tts-aka inside the browser unlocks private IVR prompts, literacy read-aloud,
and community health broadcasts with zero server egress.
| Upstream model |
facebook/mms-tts-aka
|
|---|---|
| Browser ONNX repo |
onnx-community/mms-tts-aka-ONNX
(onnx/model_q4.onnx 111,298,078 B + config/vocab 2,702 B = 111.30 MB q4)
|
| Pipeline task & runtime | text-to-speech · AutoModel via shared @huggingface/transformers@3.7.5 (lib/webai.js) · CPU wasm |
| Architecture | VitsModel (conditional VAE + normalizing-flow decoder + stochastic duration predictor; static ONNX inputs input_ids, attention_mask; 16,000 Hz mono output) |
| Vocabulary & config | 30 symbols (is_uroman: false, add_blank: true, pad_token: "a" = 0); baked ONNX defaults speaking_rate=1.0, noise_scale=0.667, noise_scale_duration=0.8 |
| License | CC-BY-NC-4.0 (Meta MMS — non-commercial) |
Show the code — Off-thread VitsModel ONNX inference & WSOLA rate scaling
Show the code — Deterministic 30-symbol Akan VitsTokenizer & OOV inspection
Compare 3 live stochastic duration draws plus 0.70×, 1.00×, and 1.35× speaking-rate acoustic scaling side-by-side.
Practical · Multi-Line Akan Radio / IVR BatcherBatch-synthesize multiple .txt, .md, ragged .csv, or .json Twi prompts with Cancel, stitched WAV, and OWASP CSV/JSON exports.
Wild · Diacritic, Loanword & OOV Behavior LabProbe 6 edge cases: ɛ/ɔ stripping, English loanword OOV drops, digits (2/3 vs 0/1/4–9), punctuation, reduplication & all-OOV.
Multi-Model · Akan TTS → Silero VAD Pacing AuditorChain MMS-TTS Akan (111.30 MB) into Silero VAD v5 (2.24 MB, ~113.54 MB total) to verify speech-frame ratio vs pauses.