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.

Runs in browser · WASM text-to-speech 114.31 MB fp32 ONNX CC-BY-NC-4.0 66-Symbol Devanagari · is_uroman: false

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.

5 curated Maithili presets
Drop a .txt, .md, .csv, or .json script here, paste text, or choose a file:
ONNX graph baked params: speaking_rate=1.0 · noise_scale=0.667 · noise_scale_duration=0.8

Prepare MMS-TTS Maithili above to synthesize real 16,000 Hz Devanagari speech in CPU WebAssembly.

Waiting for synthesis
Backend—
Synth latency—
Audio length—
Real-time factor—
RMS / Peak—
NaN count—

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.

Model specification and ONNX runtime contract
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)