automatic-speech-recognition · 37.8M params · 80-bin Log-Mel · 30s window · WASM q8 · 40.85 MB · Apache-2.0

Whisper-Tiny EN: 40.85 MB Local English ASR Studio

OpenAI's compact English-only Whisper-Tiny EN (openai/whisper-tiny.en, 37.8M parameters, Apache-2.0) converts 16 kHz audio into 80-bin Log-Mel spectrograms across a fixed 30-second encoder window and decodes punctuated English text plus native segment timestamps (~1.0 s for 11 s speech on CPU WASM).

At a glance

Whisper-Tiny EN model specifications and browser runtime contract
HF ONNX artifact Xenova/whisper-tiny.en (q8 · 40.85 MB = 40,852,295 B: encoder_model_quantized.onnx 10.12 MB + decoder_model_merged_quantized.onnx 30.73 MB · apache-2.0)
Upstream checkpoint openai/whisper-tiny.en (apache-2.0 · 37.8M params · 4 encoder / 4 decoder layers, d_model: 384, 6 heads, 51,864 English BPE tokens)
Task & runtime automatic-speech-recognition · shared @huggingface/transformers@3.7.5 via lib/webai.js · CPU wasm
Input & features 16 kHz mono Float32Array PCM (direct WAV + browser AudioContext decode + live mic) → 80-bin Log-Mel spectrogram padded to 30.0 s (3,000 frames)

1 · Transcribe audio or live microphone

Bundled audio: JFK inaugural excerpt (20 Jan 1961, public domain U.S. government work) and LibriSpeech test-clean 61-70968-0000 (Paul-Gabriel Wiener; Panayotov et al., OpenSLR SLR12, CC BY 4.0) · audio credits.

Initialise Whisper-Tiny EN (40.85 MB q8 WASM) above to transcribe locally.

Loading sample…

Live transcript & clickable timestamp chunks

Run transcription above to see live English text from Whisper-Tiny EN.
Inference time–
Audio length–
Speed vs real time–
Real-time factor–
Words / tokens–
Runtime · NaN check–

2 · See inside: 80-bin Log-Mel spectrogram & 30s encoder window

Whisper's feature extractor resamples input to 16 kHz, computes an 80-bin Log-Mel spectrogram (25 ms Hann window, 10 ms hop = 100 frames/s), and zero-pads every chunk to 30.0 seconds (3,000 frames) before the 4-layer encoder runs.

Active frames (10 ms)–
Zero-pad frames–
Samples @ 16 kHz–
Audio RMS / Peak–

Why Whisper-Tiny EN matters

English-only Whisper-Tiny dedicates its entire 51,864-token vocabulary and 37.8M parameters to English acoustics and orthography, avoiding language-detection overhead while fitting cleanly into a 40.85 MB q8 WebAssembly download cached locally in the browser.

3 · Use-case ladder

4 · How the API works

import { pipeline } from "@huggingface/transformers@3.7.5";

const transcriber = await pipeline(
  "automatic-speech-recognition",
  "Xenova/whisper-tiny.en",
  { device: "wasm", dtype: "q8" },
);

const out = await transcriber(pcm16k, {
  return_timestamps: true,
  chunk_length_s: 30,
  stride_length_s: 5,
});

5 · Inspect worker, WAV decoder & mic code

Show the code · worker.js — ensureLoaded() (epoch-guarded Transformers.js 3.7.5 q8 pipeline)
Show the code · whisper-tiny-en-core.mjs — parseWavToMono16k() (8/16/24/32-bit PCM & 32-bit float)
Show the code · whisper-tiny-en.js — createMicRecorder() (track cleanup & finally decoding reset)