█

AI/TLDR

Buy me a coffee
Buy me a coffee

WhisperLive

Near-live Whisper transcription over a websocket server

Audio, Music & VoiceOpen source
Language
Python
License
MIT
IN SHORT

What is WhisperLive?

WhisperLive is Collabora's near-live implementation of OpenAI's Whisper. It sits in the Audio, Music & Voice category of the Multimodal Generation tools and is open-source, written in Python and licensed MIT. To get started: install PortAudio and the package.

Overview

WhisperLive is Collabora's near-live implementation of OpenAI's Whisper. Whisper itself transcribes a finished file; WhisperLive turns it into a service you can speak into, running a server that accepts streaming audio from a client and returns text as it goes. The same server handles pre-recorded files, so one deployment covers both live captioning and batch transcription.

Three backends sit behind the same server interface, which is the project's most practical feature: Faster-Whisper for a straightforward CPU or GPU setup, TensorRT for NVIDIA hardware where you have built a Whisper engine, and OpenVINO for efficient inference on Intel CPUs, integrated GPUs and discrete GPUs. Switching is a `--backend` flag rather than a different project, and the server takes `--max_clients` and `--max_connection_time` so a shared instance cannot be monopolised by one session.

The transcription features go past a plain text stream. It supports word-level timestamps with confidence scores, custom vocabulary and hotwords for names and jargon Whisper otherwise mangles, speaker diarization, batch inference, and raw PCM input for clients that already have audio buffers. There is an OpenAI-compatible REST interface, Chrome and Firefox browser extensions, and an iOS client. Python, MIT licensed, with published GHCR images for both CPU and GPU.

What it does

  • Streams transcription from a live microphone or a pre-recorded file through one websocket server
  • Three interchangeable backends behind a single `--backend` flag: Faster-Whisper, TensorRT and OpenVINO
  • Word-level timestamps with confidence scores, plus custom vocabulary and hotwords
  • Speaker diarization, batch inference and raw PCM input
  • OpenAI-compatible REST interface alongside the native client protocol
  • `--max_clients` and `--max_connection_time` limits for a shared server
  • Chrome and Firefox extensions and an iOS client; prebuilt CPU and GPU images on GHCR

Getting started

Python 3.12 is the version the README sets up. PortAudio is a system dependency for microphone input via PyAudio; the bundled script installs it per platform.

Install PortAudio and the package

`scripts/setup.sh` installs `portaudio19-dev` on Debian/Ubuntu, `portaudio-devel` on Fedora, and uses Homebrew on macOS.

bashbash
bash scripts/setup.sh

python3.12 -m venv whisper_env
source whisper_env/bin/activate

pip install whisper-live

Run the server

Faster-Whisper is the simplest backend to start with. Swap `-b openvino` or `-b tensorrt` once you have the corresponding runtime in place.

bashbash
python3 run_server.py --port 9090 \
                      --backend faster_whisper \
                      --max_clients 4 \
                      --max_connection_time 600

Connect a client

Without `--server` and `--port` the client assumes localhost:9090. Drop `--files` to transcribe from the microphone instead.

bashbash
python3 run_client.py --files <audio-file-name>

Or run the published image

Prebuilt images avoid the local Python and driver setup entirely.

bashbash
# GPU
docker run -it --gpus all -p 9090:9090 ghcr.io/collabora/whisperlive-gpu:latest

# CPU
docker run -it -p 9090:9090 ghcr.io/collabora/whisperlive-cpu:latest

Expose an OpenAI-compatible endpoint

Add `--enable_rest` (and CORS origins if a browser will call it) to serve the REST interface alongside the websocket protocol.

bashbash
python3 run_server.py --port 9090 --backend faster_whisper --max_clients 4 \
  --max_connection_time 600 --enable_rest \
  --cors-origins="http://localhost:8080,http://127.0.0.1:8080"

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Add live captions to a meeting, stream or call without sending audio to a hosted API
  • Run one transcription service for several clients, with per-client connection limits
  • Get word-level timestamps and speaker labels for editing or indexing recorded audio
  • Serve Whisper on Intel iGPU/dGPU hardware through OpenVINO rather than buying NVIDIA GPUs

How WhisperLive compares

WhisperLive alongside other open-source audio, music & voice tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
VoiceStudio★ 121kA local-first desktop voice studio that clones and designs voices, dubs video, and handles dictation, running 16 text-to-speech and 11 speech-recognition engines on your own hardware.
Whisper★ 114kOpenAI's speech recognition model that transcribes and translates audio across many languages.
GPT-SoVITS★ 64.3kAn open-source WebUI that clones a voice from a short audio sample and turns text into speech, with zero-shot and few-shot fine-tuning.
Voicebox★ 61.6kLocal-first voice studio that clones a voice from a short sample, generates speech across seven TTS engines and 23 languages, handles system-wide dictation, and speaks for agents over MCP.
VibeVoice★ 57.6kMicrosoft's text-to-speech model for generating long, expressive multi-speaker audio like podcasts.
whisper.cpp★ 55.7kA dependency-free C/C++ port of Whisper built on ggml, running speech recognition on CPU, Metal, CUDA, Vulkan and NPUs from phones to servers.
Coqui TTS★ 46.3kA library of text-to-speech models including the multilingual XTTS voice-cloning model.
WhisperLive★ 4.4kNear-live Whisper transcription over a websocket server