use case · wild · acoustic, reverb & code-switching stress suite · WASM q8 · 251.88 MB

Wild: Acoustic, Reverb & Code-Switching Stress Suite

Stress-test Whisper-Small's 244M-parameter 12+12 decoder across (1) Code-Switching & Forced Prompt Ablation (<|en|>, <|fr|>, <|es|>, <|de|>, <|ja|>), and (2) 10-Condition Acoustic DSP Stress & Hallucination Guard Checks (SNR noise, reverberant room, clipping, bandpass, quiet, 1.25× speed-up, plus -∞ silence and -30 dB 440 Hz tone traps).

1 · Whisper-Small Multilingual worker (251.88 MB q8 WASM)

2 · Shared clean audio source & hallucination repetition guard

Initialise Whisper-Small above to run forced-language ablation and 10-condition DSP stress tests.

Loading clip…

3 · Code-switching & forced wrong-language prompt ablation

Force a mismatched <|lang|> prefix token (en / fr / es / de / ja) on the clean audio to inspect how prefix conditioning induces cross-lingual drift or transliteration.

Whisper-Small output under forced language prefix prompts
Prompt token Step-0 prior Latency WER vs auto NaN Decoded text
Run a forced language prompt or 6-language ablation above.

4 · 10-Condition Acoustic, Reverb & Hallucination Guard Stress Suite

WER vs clean–
Word accuracy–
Sub / Del / Ins–
Latency · speed–
NaN count–

Clean Whisper-Small baseline

Run a condition to establish the clean baseline.

Word-level diff (+10 dB white noise)

Run a condition to inspect substitutions, deletions, insertions, or trap output.

DSP condition scoreboard

Measured WER and latency across all 10 acoustic degradations and hallucination traps
Condition Duration Latency WER vs clean WER vs ref Transcript
Run a DSP condition or full 10-condition sweep above to populate the scoreboard.

5 · Inspect SNR noise, reverberant room & Levenshtein WER code

Show the code · whisper-small-core.mjs — addGaussianNoiseAtSnr() (Box-Muller calibrated SNR noise)
Show the code · whisper-small-core.mjs — applyReverbRoom() (deterministic room impulse convolution)
Show the code · whisper-small-core.mjs — computeWerAndDiff() (Unicode-aware Levenshtein alignment)