automatic-speech-recognition Β· audio Β· WebGPU (WASM fallback) Β· big model (~560 MBβ1.1 GB)
Turbo is the full large-v3 encoder with a pruned 4-layer decoder (large-v3 has 32) β near large-v3 accuracy at several times the decode speed. It handles 99 languages, auto-detects the one being spoken (with a real probability), can force a language, and can translate any speech straight to English β all in your browser, nothing uploaded.
| Model | onnx-community/whisper-large-v3-turbo (ONNX build of openai/whisper-large-v3-turbo) |
|---|---|
| Task / pipeline | automatic-speech-recognition |
| Architecture | Whisper large-v3 encoder (32 layers, 809M-param family) + pruned 4-layer decoder; 128-bin log-Mel input β text tokens, 99 languages |
| Quantization | WebGPU: q4f16 (int4 weights, fp16 activations) Β· WASM: q8 (8-bit) |
| Backend | WebGPU when a GPU adapter exists (much faster), honest WASM fallback otherwise |
| Download | ~560 MB (WebGPU q4f16) or ~1.1 GB (WASM q8), cached after first load |
| License | MIT (OpenAI Whisper) |
| Web APIs | WebGPU / WebAssembly, Web Workers, Web Audio (decode + resample), MediaRecorder (mic) |
This is a big model. On WebGPU it is fast and compact; on CPU/WASM it still runs and produces the same text, just slower (an 11-second clip can take ~30 s to decode headless). The page reports the real backend, dtype, and timing it used.
Load the model, choose audio (mic, file, or a sample), pick a language mode, and transcribe. The page decodes to 16 kHz mono (what Whisper expects), draws the waveform, and runs both a language-detection pass and the transcription in a Web Worker so the UI never janks.
This context didn't grant mic access (common in headless / embedded views). Turbo still works β use a sample above or Upload audio. For live recording, open this in a normal browser tab and allow the microphone when prompted.
Before transcribing, Whisper runs a single decoder step and predicts which language is being spoken. Below is that real probability distribution (softmax over Whisper's language tokens) β the model's own confidence, not a guess on our part. Alongside it: the measured decode speed on this device, and where turbo sits versus base Whisper.
| Model | Decoder layers | Rel. size | Accuracy |
|---|---|---|---|
| whisper-base | 6 | ~120 MB (q8) | Good; struggles on hard audio & rare languages |
| large-v3-turbo | 4 | ~560 MBβ1.1 GB | Near large-v3; strong multilingual, robust to noise/accents |
| large-v3 | 32 | ~1.5 GB+ | Best; slowest to decode |
Turbo keeps large-v3's full encoder (where most of the acoustic accuracy lives) and prunes the decoder from 32 layers to 4 β so it stays close to large-v3 quality while decoding several times faster.
| Start | End | Segment |
|---|
Base Whisper is great until the audio gets hard β heavy accents, background noise, or a less-common language. Turbo brings large-v3-grade robustness to the browser without the full large-v3 decode cost, so high-quality, multilingual transcription becomes a private, offline, zero-cost capability of your page.
One clip in, an accurate transcript out β with the detected language and its probability.
Multilingual: transcribe non-English speech, or translate any language straight to English.
Long-form: transcribe a longer clip and browse it as timestamped, seekable segments.
Transcribe β summarize: turbo's transcript feeds a summarizer for instant meeting notes.
Transcription is one pipeline call; language and task are options:
import { pipeline } from "@huggingface/transformers";
const asr = await pipeline(
"automatic-speech-recognition",
"onnx-community/whisper-large-v3-turbo",
{ device: "webgpu", dtype: "q4f16" }, // WASM + q8 fallback when no GPU
);
// audio = a 16 kHz mono Float32Array (decode with Web Audio, then resample)
const out = await asr(audio, {
language: "es", // force a language, or omit to auto-detect
task: "translate", // "transcribe" (same language) | "translate" (β English)
return_timestamps: true,
chunk_length_s: 30,
});
// out.text β the transcript (or English translation)
// out.chunks β [{ text, timestamp: [start, end] }, β¦]
For the "detected language" readout, this page runs one extra decoder step and takes a softmax over Whisper's language tokens β the model's real language distribution. The main-thread work is only audio decode + drawing; the detection and transcription both run in a Web Worker.