How In-Browser Audio Decoding & Whisper AI Transcription Works
Drop your file here
Fast speech recognition powered by Whisper
or drag and drop your file here
Recommended file size up to 500 MB for fast browser decoding • 30 min limit on mobile
How does browser-assisted Whisper transcription work?
Modern browser transcription decodes raw audio tracks directly on your machine into 16 kHz Float32 PCM using the Web Audio API. The clean, lightweight audio stream is then transcribed using Whisper, eliminating massive file uploads while maintaining peak accuracy.
The Shift From Cloud AI to Client-Side Computing
For the past decade, automatic speech recognition required uploading audio files to centralized cloud servers. While cloud APIs provide substantial compute clusters, they introduce severe drawbacks: high ongoing API costs, privacy risks, network latency, and strict rate limits.
Modern web standards—specifically WebAssembly (WASM) SIMD, WebGPU, and the Web Audio API—have made it possible to run multi-million parameter neural networks entirely inside client browser tabs.
The In-Browser Transcription Pipeline
The Tool Room implements a streamlined, high-performance pipeline composed of four primary stages:
1. Client-Side Audio Decoding & Resampling
When an audio or video file is selected, the browser's native AudioContext.decodeAudioData() decodes the container (MP3, WAV, M4A, MP4, WebM) into uncompressed PCM audio buffers. An offline audio rendering context automatically resamples the audio stream to a single-channel 16,000 Hz Float32Array, which is the standardized sampling rate expected by the Whisper acoustic encoder.
2. Feature Extraction: 80-Channel Log-Mel Spectrograms
Human speech is characterized by frequency formants. The resampled audio waveform is transformed using Short-Time Fourier Transforms (STFT) into 80-bin log-mel filterbank spectrograms. These spectral representations capture phonetic information while ignoring phase differences and background frequency noise.
3. Neural Execution via WebAssembly and WebGPU
The spectrogram frames are passed into our optimized ONNX neural speech model running in a dedicated Web Worker:
- WebGPU: On modern Chromium browsers with hardware acceleration enabled, matrix multiplications are offloaded directly to your computer's dedicated or integrated GPU via WGSL compute shaders.
- WebAssembly (WASM) with SIMD: On devices where WebGPU is unavailable, the pipeline falls back to WebAssembly compiled with 128-bit Single Instruction Multiple Data (SIMD) vector instructions, utilizing multiple CPU cores.
4. 5-Layer Hallucination Defense & Sanitization
Unconstrained sequence-to-sequence speech decoders can occasionally hallucinate repetitive words or phantom phrases during silent passages. The Tool Room applies a multi-stage validation filter:
- RMS Energy Silence Detection: Analyzes root-mean-square energy across the waveform before neural processing. Audio with insufficient vocal energy is flagged immediately as silent, preventing speculative hallucinations.
- N-Gram Repetition Detection: Detects repeating phrase loops (e.g. 3+ repetitions of identical 2-grams or 3-grams) and trims the output.
- Compression Ratio Filtering: Evaluates the gzip/zlib compressibility of generated tokens. Unusually repetitive tokens are pruned.
Data Sovereignty & Security
Because computation occurs inside your browser's local sandbox, no audio bytes, feature representations, or transcript strings are ever transmitted over the network. Once the model weights are cached in your browser's local storage (IndexedDB), the entire application functions fully offline.