▲ 424 today26k starsPythonHN ×1
WhisperX speeds up transcription 70x with word timestamps and diarization
What is whisperX?
WhisperX runs OpenAI’s Whisper model in batches, delivering transcription up to 70 times faster than real time. It also outputs timestamps for each word and can separate speakers.
Who it is for
Developers who need fast, detailed transcripts for meetings, podcasts, or video content can integrate it to get accurate text with speaker labels.
How whisperX works
WhisperX runs Whisper to produce an initial transcript and then refines it with forced phoneme alignment using a wav2vec2 model. It groups audio into speech segments with voice activity detection before feeding them to a batched faster-whisper backend. The aligned words receive timestamps via a dynamic programming algorithm that can be accelerated by Numba. An optional diarization step from pyannote-audio adds speaker labels to each word. The pipeline can run on GPU with less than 8 GB memory or on CPU.
What you can do with it
- Create a transcript with timestamps for every spoken word.
- Generate subtitle files that stay in sync with the audio.
- Identify which speaker said each word in a multi-speaker recording.
- Integrate the process into a Python script or run it from the command line.
Good to know
- Words that contain characters not covered by the alignment model’s dictionary receive no timestamps.
- Overlapping speech is not handled well by the system.
- Speaker diarization is imperfect and requires a language-specific wav2vec2 model.
Written from the project's own README.
Try it in 60 seconds
You need: CUDA toolkit 12.8 for GPU acceleration (optional for CPU only)
pip install whisperx
BSD-2-Clause licenseUpdated 6 days agoPython227 open issues
New projects are not vetted. Skim the code, and run it in a fresh folder or a container before giving it your files or keys.
The story so far
Early Signal first spotted m-bain/whisperX on November 27, 2026, when it had 25.9k GitHub stars. It now has 26k. On its busiest day it gained 424 stars. It is published under the BSD-2-Clause license and has 2.6k forks. It has been discussed in 1 Hacker News thread, the top one with 2 points. Early Signal files it under Voice, Inference.
Questions about whisperX
- Is whisperX free and open source?
- Yes. m-bain/whisperX is open source under the BSD-2-Clause license, and the code is on GitHub at https://github.com/m-bain/whisperX.
- How do I install whisperX?
- Run: pip install whisperx
- What do I need to run whisperX?
- CUDA toolkit 12.8 for GPU acceleration (optional for CPU only)