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.

Runs in browser · WASM text-to-speech 111.30 MB q4 ONNX CC-BY-NC-4.0 VitsModel · 30-symbol vocab · 16 kHz

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.

5 curated Twi / Akan phrases

English gloss: —

Akan orthography quick-insert pills (inserts at cursor)
Drop a .txt, .md, .csv, or .json file here, paste via clipboard, or choose a file:
0 chars · 0 tokens
ONNX graph defaults: noise_scale=0.667 · noise_scale_duration=0.8

Prepare Meta MMS-TTS Akan above to synthesize 16 kHz Twi speech locally in CPU WebAssembly.

Gen latency—
Audio length—
Real-time factor—
RMS / Peak—
Input IDs—
NaN count—

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.

Kept symbols—
Dropped OOV—
Vocab coverage—
Runs of this text—
Duration spread—

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