automatic-speech-recognition · 99 languages · transcribe + translate → English · WASM q8 · 76.91 MB · Apache-2.0

Whisper-Base Multilingual: 77 MB 99-Language ASR & En-Translation Studio

OpenAI's 72.6M-parameter Whisper-Base (openai/whisper-base, 6 encoder + 6 decoder layers, d_model=512, 8 attention heads, Apache-2.0) doubles the depth and width of Whisper-Tiny (37.8M, 4+4 layers) for stronger multilingual transcription across 99 spoken languages and direct speech-to-English translation — 100% locally on CPU WASM.

At a glance

Whisper-Base Multilingual model specifications and browser runtime contract
HF ONNX artifact Xenova/whisper-base (q8 · 76.91 MB ONNX = 76,908,389 B: encoder_model_quantized.onnx 23.20 MB + decoder_model_merged_quantized.onnx 53.71 MB; +2.77 MB config/tokenizer = 79.68 MB total · apache-2.0)
Upstream checkpoint openai/whisper-base (apache-2.0 · 72.6M params · 6 encoder / 6 decoder layers, d_model: 512, 8 heads, 51,865 multilingual BPE tokens, 99 <|lang|> tokens)
Task & runtime automatic-speech-recognition · shared @huggingface/transformers@3.7.5 via lib/webai.js · CPU wasm
Whisper-Base vs Tiny capacity 72.6M params (6+6 layers, d_model=512, 8 heads, 76.91 MB) vs Whisper-Tiny 37.8M (4+4 layers, d_model=384, 6 heads, 40.85 MB) — step-0 99-language softmax + transcribe / translate

1 · Transcribe or translate multilingual speech

Bundled ledgered clips: 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) · English audio credits · multilingual credits.

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

Loading sample…

Live output & clickable timestamp chunks

Run Whisper-Base 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 6-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-Base's 99-language softmax.

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

Why Whisper-Base Multilingual matters

Scaling from Whisper-Tiny (37.8M params, 4+4 layers, d_model=384) to Whisper-Base (72.6M params, 6+6 layers, d_model=512, 8 heads) keeps the model comfortably under 80 MB in quantized WebAssembly while materially improving non-English recognition, accented speech robustness, and direct speech-to-English translation.

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

const out = await transcriber(pcm16k, {
  language: "fr",
  task: "translate", // "transcribe" (French) or "translate" (English)
  return_timestamps: true,
  chunk_length_s: 30,
  stride_length_s: 5,
});

5 · Inspect worker, language detection & mic code

Show the code · worker.js — detectLanguageWindow() (99-language <|lang|> softmax probe)
Show the code · whisper-base-core.mjs — parseWavToMono16k() (8/16/24/32-bit PCM & 32-bit float)
Show the code · whisper-base.js — createMicRecorder() (track cleanup, stopping & finally reset)