
browser-whisper
Browser-native audio and video transcription using WebGPU Whisper, running entirely in the browser with no server required.
About browser-whisper
browser-whisper
browser-whisper is a JavaScript library (version 1.1.0) for transcribing audio and video entirely in the browser. It uses native WebGPU, connects to WebCodecs (via mediabunny) and Transformers.js for inference, and is designed for zero-server, fully local processing. It can be installed with bun, npm, pnpm, or yarn. Usage example shows creating a BrowserWhisper instance with a model such as whisper-base and iterating over an async transcribe(file) stream that yields text with start and end timestamps. The page also links to a live demo, additional demos covering OPFS caching, manual model download, and live microphone input with VAD, plus Vite and Next.js examples. Supported models include Whisper tiny, base, and small (multilingual, 99 languages), Moonshine tiny and base, Distil-Whisper small, Parakeet CTC 0.6B and Parakeet TDT 0.6B v3 (English-only for most, with the TDT v3 model supporting 25 European languages with auto-detection and WebGPU only). Any BCP-47 language code can be passed to skip auto-detection.
Key features
- Browser-native audio and video transcription with no server
- Native WebGPU support
- Integration with WebCodecs (mediabunny) and Transformers.js
- Async iterator output with text and start/end timestamps
- Installable via bun, npm, pnpm, or yarn
- Multiple Whisper, Moonshine, Distil-Whisper, and Parakeet models
- Optional language specification via BCP-47 codes
- Demos for OPFS caching, manual model download, and live mic with VAD
- Vite and Next.js examples
Best suited for
- Developers who want to add local transcription to web apps
- Users who need private, on-device transcription of audio or video
- Projects requiring multilingual transcription without a backend
Pricing
Not stated on the website
Discussion
Used browser-whisper? Share what worked and what didn’t.
No comments yet. Start the conversation.