use case · basics · 80-bin Log-Mel & 30s fixed encoder window · WASM q8 · 40.85 MB

Inside Whisper-Tiny EN: Fixed 30-Second Log-Mel Window

Whisper pads every short utterance to 30.0 seconds (480,000 samples → 3,000 mel frames × 80 bins) before running its 4-layer encoder. Slice jfk.wav across 2 s, 5 s, 8 s, 11 s below to watch encoder work stay constant while variable-length RoPE encoders (like Moonshine Tiny) scale linearly with clip duration.

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

2 · Live 80-bin Log-Mel & 2s / 5s / 8s / 11s duration sweep

Initialise Whisper-Tiny EN above to inspect the 80-bin Log-Mel window and run the empirical slice sweep.

2s vs 11s latency–
Mean latency–
Min–max spread–
2s zero-pad waste–
NaN count–
Measured Whisper-Tiny EN latency, active frames, chunks, and transcript per sub-clip
Sub-clip Active frames / 3000 Zero-pad % Measured ms Chunks Tokens Transcript
Run the empirical sweep above to inspect real per-slice timings and timestamp chunks.

3 · Inspect transcription & 80-bin Log-Mel code

Show the code · worker.js — transcribe() (30s chunking, timestamps & real NaN check)
Show the code · whisper-tiny-en-core.mjs — computeLogMelPreview() (512-pt FFT + 80-bin Mel filterbank)