text-to-speech · audio · VitsModel · fp32 · WASM · 114.31 MB · CC-BY-NC-4.0
Meta MMS-TTS Maithili — Devanagari Neural VITS Speech
Run Meta's Maithili (मैथिली, ISO mai) VITS checkpoint
(facebook/mms-tts-mai
exported to
naklitechie/mms-tts-mai-ONNX,
114.31 MB fp32 ONNX) completely on-device via CPU WebAssembly — converting
native Devanagari characters straight into a 16,000 Hz mono speech waveform with zero server calls.
1 · On-device model (114.31 MB fp32 WASM)
2 · Live Maithili (मैथिली) VITS Synthesizer
Pick one of 5 Maithili presets, enter Devanagari text using the quick vowel/diacritic keypad, paste anywhere
with Ctrl/Cmd+V, or drop/upload a .txt, .md, .csv, or
.json file. All inference runs off the main thread in a Web Worker.
.txt, .md, .csv, or .json script here, paste text, or choose a file:
Prepare MMS-TTS Maithili above to synthesize real 16,000 Hz Devanagari speech in CPU WebAssembly.
3 · See Inside VITS: Waveform, 192-Ch Flow Spectrogram & Devanagari Tokens
VITS maps each Devanagari character in vocab.json (66 symbols, interleaved with blank token
| id 0) through a normalizing-flow prior ([1, 192, frames]) and a
stochastic duration predictor directly into 16,000 Hz samples — no separate vocoder. Re-sampling
the same sentence draws fresh Gaussian noise inside ONNX Runtime's RandomNormalLike nodes.
16 kHz Mono Waveform
Waiting for live waveform…
VITS 192-Channel Latent Flow Spectrogram
Waiting for live VITS spectrogram tensor…
Maithili VitsTokenizer Character → ID Trace
Type or select Maithili text to inspect kept vs OOV characters.
4 · Why It Matters & At a Glance
Maithili is spoken by tens of millions across Mithila (Bihar & Nepal), yet browser speech synthesis rarely
includes native Maithili voices. Running facebook/mms-tts-mai completely in WebAssembly unlocks
offline civic announcements, rural health kiosks, literacy tools, and private Maithili read-aloud with zero
cloud voice APIs.
| Upstream model |
facebook/mms-tts-mai
(Meta Massively Multilingual Speech)
|
|---|---|
| Browser ONNX repo |
naklitechie/mms-tts-mai-ONNX
(root model.onnx, 114,308,115 bytes = 114.31 MB decimal, fp32)
|
| Task & runtime | text-to-speech · AutoModel.from_pretrained() via shared @huggingface/transformers@3.7.5 in lib/webai.js · CPU wasm |
| Architecture | VitsModel (6 encoder layers, 2 heads, 192 hidden/flow channels, 16 WaveNet posterior layers, upsample rates [8, 8, 2, 2] = 256-sample hop) |
| Tokenizer & special tokens | VitsTokenizer (is_uroman: false, add_blank: true, vocab_size: 66, pad_token: "|" = 0, unk_token: "<unk>" = 66) |
| Output & sample rate | waveform Float32Array mono at 16,000 Hz + spectrogram [1, 192, frames] |
| License | CC-BY-NC-4.0 (non-commercial) |
Show the code — Off-thread VitsModel Maithili synthesis & WSOLA tempo worker
Show the code — Exact Devanagari VitsTokenizer (vocab.json + blank interleaving)
Run 3 independent stochastic VITS takes plus live 0.70×, 1.00×, and 1.35× WSOLA tempo waveforms side-by-side.
Practical · Multi-Line Mithila Civic & IVR BatcherBatch-synthesise CSV/JSON/TXT announcements in a cancellable FIFO queue, stitch a combined WAV, and export sanitized logs.
Wild · Halant, Code-Mix & Digit OOV Stress LabProbe 6 Devanagari edge cases against vocab.json: conjuncts, Latin drops, 0-9 vs ०-९ digits, danda vs em-dash, and all-OOV errors.
Multi-Model · Maithili TTS → Silero VAD Pause AuditorChain MMS-TTS Maithili (114.31 MB) into Silero VAD v5 (2.2 MB) to verify real 16 kHz speech activity and clause pauses.