automatic-speech-recognition · 99 languages · transcribe + translate → English · WASM q8 · 251.88 MB (~252 MB) · Apache-2.0 / MIT

Whisper-Small Multilingual: 244M-Parameter 99-Language ASR & En-Translation Studio

OpenAI's 244M-parameter Whisper-Small (openai/whisper-small, 12 encoder + 12 decoder layers, d_model=768, 12 attention heads, 80 mel bins, 16 kHz) scales capacity 3.4× over Whisper-Base (72.6M, 6+6 layers) for higher-accuracy transcription across 99 spoken languages and direct speech-to-English translation — 100% locally on CPU WASM.

At a glance

Whisper-Small Multilingual model specifications and browser runtime contract
HF ONNX artifact Xenova/whisper-small (q8 · 249.11 MB ONNX = 249,105,759 B: onnx/encoder_model_quantized.onnx 92,324,809 B + onnx/decoder_model_merged_quantized.onnx 156,780,950 B; +2,769,557 B config.json, generation_config.json, preprocessor_config.json, tokenizer_config.json, and tokenizer.json [2,480,466 B] = 251.88 MB [~252 MB total] · apache-2.0)
Upstream checkpoint openai/whisper-small (MIT / HF card apache-2.0 · 244M params · 12 encoder / 12 decoder layers, d_model: 768, 12 heads, ffn_dim: 3072, 80 mel bins, 16 kHz, 51,865 BPE vocab, 99 <|lang|> tokens)
Task & runtime automatic-speech-recognition · shared @huggingface/transformers@3.7.5 via lib/webai.js · CPU wasm
Whisper-Small vs Base vs Tiny 244M params (12+12 layers, d_model=768, 12 heads, 251.88 MB) vs Whisper-Base 72.6M (6+6, d_model=512, 79.68 MB) vs Whisper-Tiny 37.8M (4+4, d_model=384, 40.9 MB)

1 · Transcribe or translate multilingual speech

Bundled ledgered clips + deterministic 16 kHz Web Audio synths: JFK (EN, Public domain), Rimbaud / Bécquer / Collodi LibriVox (FR / ES / IT, Public domain), VoxPopuli EU Parliament (DE / NL, CC0), FLEURS (JA, CC BY 4.0), LibriSpeech (EN, CC BY 4.0), plus Ctrl/Cmd+V audio paste · English audio credits · multilingual credits.

Initialise Whisper-Small Multilingual (251.88 MB q8 WASM) above to transcribe or translate locally.

Loading sample…

Live output & clickable timestamp chips

Run Whisper-Small above to see live multilingual transcription or English translation.
Detected · Active lang–
Inference time–
Speed vs real time–
Real-time factor–
Words / tokens–
Runtime · NaN check–

2 · See inside: 99-language softmax, decoder prefix & 80-bin Log-Mel

Decoder prompt prefix tokens

Every multilingual run conditions the 12-layer decoder with <|startoftranscript|>, <|lang|>, and <|transcribe|> or <|translate|>.

Decoder prefix tokens appear after a run.

99-language <|lang|> softmax

Run transcription or translation to inspect Whisper-Small's 99-language softmax.

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

Why Whisper-Small Multilingual matters

Scaling from Whisper-Base (72.6M params, 6+6 layers, d_model=512) to Whisper-Small (244M params, 12+12 layers, d_model=768, 12 heads) delivers a substantial jump in non-English WER, speech-to-English translation fluency, and resilience under noise and reverberation while still running completely offline in a single browser tab.

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-small",
  {
    device: "wasm",
    dtype: { encoder_model: "q8", decoder_model_merged: "q8" },
  },
);

const out = await transcriber(pcm16k, {
  language: "fr",
  task: "translate", // "transcribe" (French) or "translate" (English)
  return_timestamps: "word", // falls back to segment timestamps if cross-attn absent
  chunk_length_s: 30,
  stride_length_s: 5,
});

5 · Inspect worker, language detection & mic guard code

Show the code · worker.js — detectLanguageWindow() (99-language <|lang|> softmax probe)
Show the code · whisper-small-core.mjs — parseWavToMono16k() (8/16/24/32-bit PCM & 32-bit float)
Show the code · whisper-small.js — createMicGuard() (generation-guarded mic acquisition & track cleanup)