# Repository Briefing: QuentinFuxa/WhisperLiveKit
> Source: https://repoforai.com/repo/QuentinFuxa/WhisperLiveKit (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/QuentinFuxa/WhisperLiveKit
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A+ (96/100 · Maintenance 35/35 · Adoption 21/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.2.28 (2026-11-22) — https://github.com/QuentinFuxa/WhisperLiveKit/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI, CLI, GPU, API
- **Momentum**: 11,327 ★ total (+3 24h / +27 7d) · 1,171 forks
- **Topics**: `automatic-speech-recognition`, `fastapi`, `python`, `pytorch`, `real-time`, `speaker-diarization`, `speech-recognition`, `speech-to-text`, `streaming`, `translation`, `websocket`, `whisper`
- **When to Use**: Best for: Teams building live captions or multilingual meeting tools that need control over audio routing, backend choice, and transcript delivery. Skip if: You only transcribe finished files, require full OpenAI or Deepgram API parity, or want managed capacity without operating model runtimes.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Streaming policies: AlignAtt SimulStreaming and LocalAgreement control incremental text; Voxtral uses its own streaming policy.
- Session protocol: `/asr` supports per-session language, translation targets when enabled, and backend-dependent terminology context; diff updates are experimental.
- Qwen3 audio caching: `qwen3-streaming` defaults to a 12-second re-encoding window; its causal mode encodes each audio block once with a dedicated checkpoint.
- Speaker and translation layers: Streaming Sortformer adds speaker labels; NLLB runs in-process, while AlignAtt translation uses an Alignatt4LLM sidecar.
- Client interfaces: Browser UI, offline CLI with SRT export, OpenAI-style REST transcription, and a Deepgram-compatible streaming subset.
- Deployment profiles: Compose separates CUDA Sortformer and Voxtral builds while sharing a Hugging Face cache volume; Apple Silicon has separate MLX options.
```

## Quick Start / Clone
```bash
pip install whisperlivekit
```
