Basics · Devanagari VITS Acoustic Duration, Stochastic Rhythm & WSOLA Tempo Scaling
Inside Devanagari VITS Duration & Prosody Scaling
Explore two acoustic properties of naklitechie/mms-tts-mai-ONNX (114.31 MB fp32
WASM): pitch-preserving WSOLA tempo scaling (0.70× vs 1.00× vs 1.35×)
over live 16,000 Hz VITS audio, plus 3 independent forward passes showing how VITS's baked
stochastic duration predictor (noise_scale=0.667, noise_scale_duration=0.8) varies
duration, RMS, and zero-crossing rate on identical Devanagari input.
1 · Load MMS-TTS Maithili (114.31 MB fp32 WASM)
2 · Live Speaking Tempo Comparison (0.70× · 1.00× · 1.35× WSOLA)
Because model.onnx exposes only ["input_ids", "attention_mask"] with
speaking_rate=1.0 baked into the graph, we synthesise the real native 1.00× Maithili
waveform on-device and apply pitch-preserving WSOLA overlap-add scaling to compare 0.70×
(slow clear articulation), 1.00× (native), and 1.35× (fast announcement) side-by-side.
0.70× Slow
Run comparison above to synthesise.
1.00× Native
Run comparison above to synthesise.
1.35× Fast
Run comparison above to synthesise.
3 · Stochastic Duration Predictor Variance (3 Live Forward Passes)
Each pass runs model({ input_ids, attention_mask }) independently on identical tokens. Inside
the ONNX graph, RandomNormalLike nodes sample latent duration and flow noise
(noise_scale=0.667, noise_scale_duration=0.8), producing distinct speech timings
every run.
Take 1
Click "Sample 3 Stochastic VITS Takes" above.
Take 2
Each take is a fresh ONNX forward pass.
Take 3
Observe real duration, RMS, and ZCR shifts.