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

  1. 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.
  2. 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.
  3. Speaker labels. pyannote's community-1 pipeline 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

  1. Use Python 3.10 to 3.13 (3.11 or newer gets the latest pyannote).
  2. For a GPU, install the NVIDIA CUDA toolkit 12.8 first. Skip this to run on the CPU.
  3. Install FFmpeg.
  4. pip install whisperx
  5. For speaker labels: accept the conditions on the community-1 model page and create a read token at hf.co/settings/tokens.

Command line

Transcribe with word timings (default model: small)
whisperx audio.wav
Add speaker labels, two speakers
whisperx audio.wav --model large-v2 --diarize --hf_token YOUR_HF_TOKEN \
  --min_speakers 2 --max_speakers 2
CPU or Mac
whisperx audio.wav --compute_type int8 --device cpu

For 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

transcribe.py
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

ToolWhat it isBest for
openai-whisperOpenAI's reference implementationSimple local use and research
faster-whisperWhisper on the CTranslate2 engineFaster transcription with less memory
WhisperXfaster-whisper plus word alignment and speaker labelsSubtitles and multi-speaker recordings
whisper.cppA C/C++ port with no PythonCPUs, 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

Don't want to run it yourself?

VexaScribe's Standard tier runs OpenAI Whisper and adds speaker labels, with nothing to install. Upload audio or video up to 5 GB, then export TXT, Word, SRT, VTT or JSON.

30 free minutes on signup, no card. Plans from $2 a month.

A VexaScribe transcript with a timestamp and the speaker, Sam or Rosa, on every line

Sources

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.