QuentinFuxa/WhisperLiveKit
Self-hosted streaming speech-to-text with pluggable ASR and speaker diarization
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
WhisperLiveKit runs a shared ASR engine behind FastAPI and Uvicorn. Audio arrives through the native /asr WebSocket or the bundled browser UI, and voice activity detection reduces work during silence. Rather than transcribing each small chunk in isolation, the pipeline buffers context and uses a streaming policy to decide when to commit text. The base Python stack includes PyTorch, torchaudio, Faster-Whisper, librosa, and soundfile.
The --backend selector chooses the inference runtime; --backend-policy selects AlignAtt SimulStreaming by default or LocalAgreement where supported. FunASR requires LocalAgreement, while Voxtral uses neither policy and streams on its own. A shared engine serves concurrent sessions with per-session language controls and, on supported backends, terminology hints. The bundled UI uses full-state updates; custom clients can opt into the experimental mode=diff protocol.
Key Capabilities & Differentiators
The same package supports live transcription, optional speaker diarization and translation, and serverless file transcription with SRT export. Streaming Sortformer is available for diarization. Translation can run in-process through NLLB or use an Alignatt4LLM sidecar for attention-gated, append-only text. The service exposes /v1/audio/transcriptions for OpenAI-style REST uploads and a Deepgram-compatible streaming subset; neither is a full replacement for the corresponding hosted API.
Backend choice affects both language coverage and timing. Voxtral Mini natively handles more than 100 languages with automatic detection; Canary-1b-v2 covers 25 European languages and provides native word timestamps. The Hugging Face Qwen3 streaming backend requires an explicit language and estimates word timing by interpolation at roughly one-second precision. Use the Qwen3 vLLM backend with ForcedAligner when those estimates are too coarse.
Trade-offs & Limitations
Direct Whisper inference is simpler for completed recordings. WhisperLiveKit earns its extra runtime when an application needs to preserve context across audio chunks, commit text incrementally, or attach speaker labels. Compared with a managed Whisper API, local inference gives operators control over audio routing and model selection, but they must size and maintain the service. The shared engine supports concurrent clients; that does not establish how many any given model and machine can handle in real time.
Use wlk bench to compare ASR configurations, then load-test the actual pipeline with representative audio and target concurrency. Measure time to stable text, host memory, and peak VRAM with diarization and translation enabled if needed. CPU support is not a throughput guarantee: Canary runs on CPU but is slow there, and its Apple Silicon restore path does not use MPS. The windowed Qwen3 streaming mode can re-encode up to 12 seconds per update; causal mode encodes each block once but requires a dedicated checkpoint.
Hardware & Deployment Guide
The package targets Python 3.11–3.13. Install with pip install whisperlivekit, launch with wlk --model base --language en, and open http://localhost:8000. For file transcription without a server, use wlk transcribe meeting.wav. Prepare model weights ahead of time for disconnected deployment. The tree includes Dockerfile and Dockerfile.cpu; compose.yml provides separate GPU Sortformer and Voxtral services, a persistent Hugging Face cache, and optional HF_TOKEN wiring.
Select one validated dependency profile rather than combining all accelerators: qwen3-vllm and cu129 require separate environments, and the Diart extra is limited to Python 3.11–3.12. v0.2.28 added Nemotron streaming on Apple Silicon and safer API token handling. It also brought local MLX translation and bounded WebSocket sessions to PyPI from v0.2.27, which was not published there. For remote access, configure TLS and API authentication; use the bearer header rather than putting credentials in the URL where clients support it.
/asr supports per-session language, translation targets when enabled, and backend-dependent terminology context; diff updates are experimental.qwen3-streaming defaults to a 12-second re-encoding window; its causal mode encodes each audio block once with a dedicated checkpoint.Teams building live captions or multilingual meeting tools that need control over audio routing, backend choice, and transcript delivery.
You only transcribe finished files, require full OpenAI or Deepgram API parity, or want managed capacity without operating model runtimes.
Quick Start & Installation
pip install whisperlivekitComparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| WhisperLiveKit ★ | 11.3k | +27 | Python | Apache-2.0 | Self-hosted streaming speech-to-text with pluggable ASR and speaker diarization |
| whisperX | 26.5k | +677 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
| buzz | 23.3k | +171 | Python | MIT | Whisper-powered Python desktop app for local audio transcription and translation |
| mlx-audio | 8.4k | +32 | Python | MIT | MLX inference SDK for local speech and audio pipelines on Apple Silicon |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/QuentinFuxa/WhisperLiveKit.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about WhisperLiveKit
How should an application integrate live captions and file transcription?
/asr WebSocket for live audio and partial transcripts. Start with full-state updates; mode=diff is experimental and requires the client to apply incremental changes. For file uploads, point the OpenAI SDK at the local /v1 base URL and use /v1/audio/transcriptions. Test the endpoints and response fields you rely on because compatibility is limited to a subset.Can it run without an NVIDIA GPU, and how should I size it?
base on CPU or an MLX backend on Apple Silicon. For NVIDIA deployments, compare the ASR-only configuration with the full pipeline, including diarization or translation if used. Measure host RAM, peak VRAM, and time to a stable transcript at your target number of simultaneous sessions. There is no single VRAM requirement across backends and model sizes.Can I deploy it commercially and keep audio on premises?
openai-api backend is not equivalent to running inference locally.When is this a better choice than direct Whisper or a hosted Whisper API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy