use case · basics · 12-layer self-supervised frames & 1 s pooling sensitivity · WASM q8 · 95.89 MB

Inside Wav2Vec2 SUPERB KS: Time-Slice, Cropping & Padding Lab

SUPERB Keyword Spotting was trained on ~1-second Google Speech Commands utterances using mean pooling across all 20 ms CNN/Transformer frames. Sweep 0.3 s, 0.6 s, 1.0 s, 2.0 s windows and framing offsets below to watch how temporal context shifts probabilities between _unknown_, _silence_, and spoken commands.

1 · Wav2Vec2-Base SUPERB KS worker (95.89 MB q8 WASM)

2 · Live 0.3s / 0.6s / 1.0s / 2.0s cropping & padding sweep

Initialise Wav2Vec2-Base SUPERB KS above to run the empirical cropping and padding sensitivity sweep.

0.3s vs 1.0s top-1–
Mean latency–
Entropy shift–
CNN frames @ 1.0s–
NaN count–
Measured Wav2Vec2-Base SUPERB KS predictions, CNN frame counts, entropy, and latency per time-slice window
Window Span CNN frames Latency Top-1 _unknown_ _silence_ Entropy
Run the sweep above to inspect real per-window logits and CNN frame counts.

3 · Inspect classification worker & 20 ms CNN frame code

Show the code · worker.js — classify() (top_k: 12 pipeline + real NaN audit)
Show the code · wav2vec2-base-superb-ks-core.mjs — computeCnnFrameEnvelope() (400-sample RF / 320-sample hop)