use case · wild · live DSP stress & WER diff · WASM q8 · 28.18 MB

Wild: Noise, Bandpass & Speed Perturbation Stress Lab

How resilient is a 27.1M-parameter quantized speech model outside a quiet studio? Synthesize calibrated Gaussian noise (20 / 10 / 5 dB SNR), a 300–3400 Hz telephone bandpass, and 0.85× / 1.25× speed shifts right in the browser, audition the degraded audio, and compute live Word Error Rate (WER) and word-level diffs against the clean baseline.

1 · Moonshine Tiny worker (28.18 MB q8 WASM)

2 · Apply DSP perturbation & measure live WER

Initialise Moonshine Tiny above to run live DSP perturbations and WER diffs.

Loading clip…
WER vs clean baseline–
Word accuracy–
Sub / Del / Ins–
Latency · speed–
NaN count–

Clean Moonshine baseline

Run a perturbation to establish the clean baseline.

Word-level diff (Clean vs baseline)

Run a perturbation to inspect substitutions, deletions, and insertions.

Condition scoreboard

Measured WER and latency across all acoustic perturbation conditions
Condition Duration Latency WER vs clean WER vs ref Transcript
Run a condition or full sweep above to populate the stress scoreboard.

3 · Inspect Gaussian SNR noise & Levenshtein WER code

Show the code · moonshine-tiny-core.mjs — addGaussianNoiseAtSnr() (Box-Muller calibrated SNR noise)
Show the code · moonshine-tiny-core.mjs — computeWerAndDiff() (Levenshtein word-level alignment)