use case · wild · wrong-language prompt ablation, DSP stress & silence traps · WASM q8 · 40.85 MB

Wild: Wrong-Language Prompting & Acoustic Stress Lab

Probe two distinct failure modes of multilingual Whisper-Tiny: (1) Forced Wrong-Language Prompting — force <|fr|>, <|es|>, <|de|>, or <|ja|> prefix tokens on English/other speech to watch cross-script hallucination; and (2) Acoustic Stress & Silence Traps — inject calibrated noise, telephone bandpass, speed shifts, or pure silence/tone buffers.

1 · Whisper-Tiny Multilingual worker (40.85 MB q8 WASM)

2 · Shared audio source & repetition guard

Initialise Whisper-Tiny above to run wrong-language prompt ablation and DSP stress tests.

Loading clip…

3 · Forced wrong-language prompt conditioning ablation

Force a mismatched <|lang|> prefix token on the same clean audio (e.g. force <|fr|> or <|es|> on English JFK speech) to observe how decoder prompt conditioning overrides acoustic evidence.

Whisper-Tiny 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 · Acoustic DSP degradations & silence/tone hallucination traps

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

Clean Whisper 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 acoustic degradations and hallucination traps
Condition Duration Latency WER vs clean WER vs ref Transcript
Run a DSP condition or full sweep above to populate the scoreboard.

5 · Inspect Gaussian SNR noise & Levenshtein WER code

Show the code · whisper-tiny-core.mjs — addGaussianNoiseAtSnr() (Box-Muller calibrated SNR noise)
Show the code · whisper-tiny-core.mjs — computeWerAndDiff() (Unicode-aware Levenshtein alignment)