WhisperX setup — install, alignment, diarization errors fixed

Don’t want to install WhisperX? Drop the file here.

Every recording starts with a free preview of its opening minutes; a pack from $4 (300 minutes) transcribes the rest and opens every export, and credits never expire.

Install WhisperX for word-accurate timestamps and speaker diarization, and fix the classic failures: pyannote auth token errors, CUDA/cuDNN mismatches, alignment model downloads.

Setup that works

1

Install

pip install whisperx (or uvx whisperx) in a fresh environment on Python 3.10 to 3.13. For a GPU, install the CUDA toolkit 12.8 first (README and pyproject.toml, checked 26 Oct 2026).

2

Basic run

whisperx audio.mp3 uses Whisper small; for better timestamps whisperx audio.mp3 --model large-v2 --align_model WAV2VEC2_ASR_LARGE_LV60K_960H --batch_size 4. No NVIDIA GPU or on a Mac: add --device cpu --compute_type int8.

3

Diarization

--diarize --hf_token hf_… with a Hugging Face read token, after accepting the user agreement for pyannote/speaker-diarization-community-1. Add --min_speakers 2 --max_speakers 2 if you know the count.

Fixing the common errors

“Could not download pyannote model” / 401

Current WhisperX uses pyannote/speaker-diarization-community-1. Accept its user agreement on Hugging Face while logged in, then pass a token with read scope. Older guides name segmentation-3.0 and speaker-diarization-3.1; those were for earlier releases.

CUDA error / cuDNN version mismatch

WhisperX 3.8 pins torch 2.8 and its project file points at the CUDA 12.8 wheels (https://download.pytorch.org/whl/cu128). Install the CUDA toolkit 12.8, then reinstall whisperx in a clean environment.

Alignment fails for my language

Built-in alignment models cover en, fr, de, es and it through torchaudio, and many more through Hugging Face (DEFAULT_ALIGN_MODELS_HF in alignment.py). For a language outside the list you need a phoneme model from Hugging Face, tested on your audio.

Out of memory on large-v2

Use --compute_type int8 (halves VRAM, minor accuracy cost) or --batch_size 4.

It's slower than advertised

The 70× realtime figure is GPU batch mode. CPU runs are roughly realtime; if you don't have an NVIDIA GPU, a hosted run is usually faster end-to-end.

More on WhisperX: the full WhisperX page · WhisperX alternatives · all transcription tools

Have the recording already?

Skip the setup and send the file or the link: see MP3 to text for long recordings, transcribing a podcast episode and the SRT generator.

Rather have it done for you?

Free tools cost setup time. When you want a finished transcript instead: see how our transcription services work.