WhisperX: Whisper with word timestamps and speaker labels
WhisperX is an open-source Python tool that runs Whisper fast, gives every word its own timestamp and labels who is speaking. It uses the same Whisper models, so the words are no more accurate; what improves is the timing, the speed and the speaker step.
By VexaScribe Editorial · Published July 19, 2026 · Rewritten November 17, 2026 · Checked against WhisperX 3.8.6
What WhisperX adds
- Batched transcription. Voice activity detection cuts the audio into speech regions, and faster-whisper transcribes them in batches. The README reports up to 70× real time with large-v2 on a GPU, using under 8 GB of memory.
- Word alignment. A wav2vec2 model lines each word up with the audio. Whisper's own timestamps are per phrase and can be off by several seconds.
- Speaker labels. pyannote's
community-1pipeline finds who spoke when, and each word gets the speaker talking at that moment.
It also turns off Whisper's habit of conditioning on the previous text by default, which the authors say reduces hallucination. The method is described in the WhisperX paper (INTERSPEECH 2023).
Install
- Use Python 3.10 to 3.13 (3.11 or newer gets the latest pyannote).
- For a GPU, install the NVIDIA CUDA toolkit 12.8 first. Skip this to run on the CPU.
- Install FFmpeg.
pip install whisperx- For speaker labels: accept the conditions on the community-1 model page and create a read token at hf.co/settings/tokens.
Command line
whisperx audio.wavwhisperx audio.wav --model large-v2 --diarize --hf_token YOUR_HF_TOKEN \
--min_speakers 2 --max_speakers 2whisperx audio.wav --compute_type int8 --device cpuFor a language other than English, pass --language de (or another code). Alignment needs a wav2vec2 model for that language: English, French, German, Spanish and Italian are built in, and many others load from Hugging Face.
Python
import whisperx
from whisperx.diarize import DiarizationPipeline
device = "cuda"
audio = whisperx.load_audio("meeting.mp3")
# 1. Transcribe (use compute_type="int8" if GPU memory is short)
model = whisperx.load_model("large-v2", device, compute_type="float16")
result = model.transcribe(audio, batch_size=16)
# 2. Align words
align_model, metadata = whisperx.load_align_model(language_code=result["language"], device=device)
result = whisperx.align(result["segments"], align_model, metadata, audio, device)
# 3. Label speakers
diarize = DiarizationPipeline(token="YOUR_HF_TOKEN", device=device)
result = whisperx.assign_word_speakers(diarize(audio), result)
for seg in result["segments"]:
print(seg.get("speaker"), seg["start"], seg["text"])Each segment then has a speaker, and each entry in its words list has its own start, end and speaker. Low on GPU memory? Lower batch_size, use a smaller model or int8.
Which tool to use
| Tool | What it is | Best for |
|---|---|---|
| openai-whisper | OpenAI's reference implementation | Simple local use and research |
| faster-whisper | Whisper on the CTranslate2 engine | Faster transcription with less memory |
| WhisperX | faster-whisper plus word alignment and speaker labels | Subtitles and multi-speaker recordings |
| whisper.cpp | A C/C++ port with no Python | CPUs, Apple Silicon and small devices |
If you only need plain text, faster-whisper on its own is simpler. Choose WhisperX when timing or speakers matter. Setup for each is in our install guide.
Limits
- Words with no letters in the alignment model's alphabet, like "2014." or "£13.60", get no timing
- Overlapping speech isn't handled well, by Whisper or WhisperX
- Speaker labels are imperfect, especially for short replies and similar voices
- Each language needs its own alignment model
- Speaker labels need a Hugging Face token and the accepted community-1 conditions
- A large model wants a GPU; on a CPU it is slow
Sources
- WhisperX on GitHub and PyPI (version 3.8.6, BSD-2-Clause), checked November 17, 2026
- Bain et al., WhisperX: Time-Accurate Speech Transcription of Long-Form Audio, INTERSPEECH 2023
- faster-whisper and whisper.cpp
We didn't benchmark WhisperX ourselves; speed and memory figures are the authors'. See our editorial standards.
Frequently Asked Questions
Is WhisperX more accurate than Whisper?
Not for the words: it runs the same Whisper models. What it improves is timing, with a timestamp on every word, speed, through batched transcription, and speaker labels. The authors also report fewer hallucinations, because it transcribes speech regions found by voice activity detection.
WhisperX or faster-whisper?
WhisperX uses faster-whisper for transcription, then adds word alignment and speaker labels. If you only need plain text, faster-whisper alone is simpler. Choose WhisperX for subtitles or recordings with several speakers.
Does WhisperX need a Hugging Face token?
Only for speaker labels. Transcription and word alignment work without one. For diarization, accept the conditions of pyannote's speaker-diarization-community-1 model on Hugging Face and pass a read token.
Does WhisperX run on a CPU or a Mac?
Yes: pass --device cpu --compute_type int8. It works, but it's much slower than on an NVIDIA GPU, so start with a smaller model.
Which Python version does WhisperX need?
WhisperX 3.8.6 supports Python 3.10 to 3.13. Use 3.11 or newer to get the latest pyannote.audio, which dropped 3.10 in version 4.1.

