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

Whisper-Tiny Multilingual: 40.85 MB 99-Language ASR & Translation Studio

OpenAI's compact multilingual Whisper-Tiny (openai/whisper-tiny, 37.8M parameters, Apache-2.0) supports 99 spoken languages, automatic <|lang|> detection, native-language transcription, and direct speech-to-English translation across a fixed 30-second 80-bin Log-Mel window — running 100% locally on CPU WASM.

At a glance

Whisper-Tiny Multilingual model specifications and browser runtime contract
HF ONNX artifact Xenova/whisper-tiny (q8 · 40.85 MB = 40,852,675 B: encoder_model_quantized.onnx 10.12 MB + decoder_model_merged_quantized.onnx 30.73 MB · apache-2.0)
Upstream checkpoint openai/whisper-tiny (apache-2.0 · 37.8M params · 4 encoder / 4 decoder layers, d_model: 384, 6 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
Unique capabilities vs whisper-tiny.en 99-language <|lang|> detection softmax + task switching (task: "transcribe" in original language vs task: "translate" straight to English)

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, CC0), FLEURS (JA, CC BY 4.0), LibriSpeech (EN, CC BY 4.0) · English audio credits · multilingual credits.

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

Loading sample…

Live output & clickable timestamp chunks

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

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

Why Whisper-Tiny Multilingual matters

In the same 40.85 MB q8 WebAssembly budget as whisper-tiny.en, multilingual Whisper-Tiny trades English-only specialization for a 99-language spoken-language detector and joint speech-translation decoder — letting browsers auto-detect incoming audio and transcribe or translate directly to English without server round-trips.

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",
  { 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-tiny-core.mjs — parseWavToMono16k() (8/16/24/32-bit PCM & 32-bit float)
Show the code · whisper-tiny.js — createMicRecorder() (track cleanup, stopping & finally reset)