Skip to content
Go back

Faster-Whisper vs WhisperX: Who Said What

By KingPin 12 min read
Contents

Your Podcast Transcript Is One Giant Paragraph

You ran a three-person podcast through Faster-Whisper. The text is good. It is also one undifferentiated wall of words with no idea who said what, and the subtitles you built from it start half a second late whenever someone pauses to think.

My verdict: use Faster-Whisper for almost everything: notes, search indexes, a single speaker, captions where a quarter-second of slop is fine. Reach for WhisperX only when you need one of two things: speaker labels, or word timings tight enough for karaoke-style highlighting and click-to-seek search. WhisperX runs on a faster-whisper backend anyway, so the real choice is whether to bolt an aligner, a diarization pipeline and a gated Hugging Face download onto the transcriber you already have.

As of November 2026, the current releases are WhisperX 3.8.6 (PyPI, May 2026) and faster-whisper 1.2.1 (PyPI, October 2025). If you have not set up the base layer yet, start with our Whisper and Faster-Whisper setup guide. This post assumes that part works.

Full example: Clone the working files at github.com/KingPin/sumguy-examples/tree/main/llm/faster-whisper-vs-whisperx

The code blocks below are trimmed versions of the scripts in that repo, which read the audio path and settings from the command line and environment.

What Faster-Whisper Gives You on Its Own

Faster-Whisper has no diarization at all. Its own README points to WhisperX and a couple of other projects for that. What it does have is word_timestamps=True.

transcribe_fw.py
from faster_whisper import WhisperModel
model = WhisperModel("large-v3", device="cuda", compute_type="float16")
segments, info = model.transcribe(
"/data/audio/interview.wav",
word_timestamps=True,
)
for segment in segments:
for word in segment.words:
print(f"[{word.start:.2f}s -> {word.end:.2f}s] {word.word}")

One install trap before you run that. A fresh pip install faster-whisper today pulls faster-whisper 1.2.1 and PyAV 19, and that pair fails on the first file path you pass in:

TypeError: open() got an unexpected keyword argument 'metadata_errors'

PyAV 19.0.0 landed in September 2026, eleven months after the last faster-whisper release. The fix is merged upstream (issue #1589) but not on PyPI as of November 2026. Pin PyAV until a new release ships:

Terminal window
pip install faster-whisper "av<19"

We hit this on a clean virtualenv while testing the example scripts. WhisperX installs the same faster-whisper and PyAV, but its pipeline decodes audio by shelling out to the ffmpeg binary, so the WhisperX script ran fine without the pin (and needs ffmpeg on your PATH instead).

The docstring in faster_whisper/transcribe.py says the timestamps come from “the cross-attention pattern”. Whisper never learned to emit timestamps for words. The decoder pays attention to parts of the audio while it writes each token, and faster-whisper reads those attention weights back, runs them through a dynamic time warping pass (the approach OpenAI’s Whisper uses), and turns that into start and end times per word.

That is clever and it costs almost nothing. It is also an inference about a model that was not trained to give you this answer. In practice you see three kinds of wobble:

  1. Boundaries land a few tenths of a second early or late, mostly around pauses and fast speech.
  2. Words next to silence stretch to cover the gap.
  3. Long silences can produce confident words that nobody said. Faster-Whisper has a hallucination_silence_threshold argument (default None). With word_timestamps on, it skips silent stretches longer than the value you set when it detects a possible hallucination. It helps with the third problem. It does not fix the first two.

For a search index that jumps you to “somewhere near the 14 minute mark”, this is fine. For burned-in captions where each word lights up as it is spoken, you will notice.

Faster-Whisper also ships BatchedInferencePipeline for faster throughput on a GPU. That batching exists without WhisperX, so do not pick WhisperX purely for speed.

What WhisperX Adds

WhisperX (github.com/m-bain/whisperX) is a pipeline of four steps. Each one is a separate model or function call.

  1. Batched transcription. Voice activity detection (pyannote by default, silero as an option) cuts the audio into speech chunks. A faster-whisper model transcribes those chunks in batches. WhisperX’s pyproject.toml requires faster-whisper>=1.2.0, so this layer is the one you already know.
  2. Forced alignment. A wav2vec2 phoneme model takes the text from step 1 and the audio, and finds where each word sits. This is the step that fixes timestamps. The model recognizes sounds, so it is anchored to the waveform instead of inferring timing from decoder attention.
  3. Diarization. pyannote works out who spoke when, as a table of time ranges and speaker labels.
  4. Speaker assignment. assign_word_speakers overlaps the diarization table with your aligned words and writes a speaker key onto each segment and each word.

The pipeline in code

transcribe_wx.py
import gc
import whisperx
from whisperx.diarize import DiarizationPipeline
device = "cuda"
audio_file = "/data/audio/interview.wav"
batch_size = 16 # lower this if you run out of VRAM
compute_type = "float16" # "int8" if VRAM is tight
# 1. Batched transcription (faster-whisper under the hood)
model = whisperx.load_model("large-v3", device, compute_type=compute_type)
audio = whisperx.load_audio(audio_file)
result = model.transcribe(audio, batch_size=batch_size)
# Free the VRAM before loading the next model
del model
gc.collect()
# 2. Forced alignment with a wav2vec2 model for the detected language
model_a, metadata = whisperx.load_align_model(
language_code=result["language"], device=device
)
result = whisperx.align(
result["segments"], model_a, metadata, audio, device,
return_char_alignments=False,
)
# 3. Diarization
diarize_model = DiarizationPipeline(token="hf_xxx", device=device)
diarize_segments = diarize_model(audio, min_speakers=2, max_speakers=3)
# 4. Attach speakers to words
result = whisperx.assign_word_speakers(diarize_segments, result)
for seg in result["segments"]:
print(seg.get("speaker", "UNKNOWN"), f"{seg['start']:.2f}", seg["text"].strip())

Two API details changed, and older blog posts get them wrong. The class lives at whisperx.diarize.DiarizationPipeline; releases up to 3.3.3 (May 2025) also exported it as whisperx.DiarizationPipeline. The token argument is token, not the old use_auth_token (changed in the 3.8 line). An older tutorial fails with an AttributeError on the import or a TypeError on the token argument.

The output looks like this:

SPEAKER_00 0.03 Welcome back to the show.
SPEAKER_01 2.41 Thanks, glad to be here.
SPEAKER_00 4.10 So, let's start with the migration.

Labels are anonymous. You get SPEAKER_00 and SPEAKER_01, not names. Mapping them to people is your job, and the simplest method is listening to the first line each one speaks.

Or skip the Python

The CLI does all four steps in one command.

Terminal window
pip install whisperx
whisperx /data/audio/interview.wav \
--model large-v3 \
--diarize \
--hf_token hf_xxx \
--min_speakers 2 --max_speakers 3 \
--batch_size 8 \
--compute_type float16 \
--highlight_words True \
--output_format srt \
--output_dir /data/out

The defaults per the current __main__.py: --model small, --batch_size 8, --compute_type default (float16 on GPU, float32 on CPU), --output_format all (srt, vtt, txt, tsv and json in one go; aud only when you ask for it by name). The --diarize_model flag defaults to pyannote/speaker-diarization-community-1. Add --highlight_words True and the srt and vtt files underline each word as it is spoken. Combine that flag with --no_align and the CLI refuses to run (--highlight_words not possible with --no_align), since there are no word timings to underline.

The Hugging Face Token and the Gated Model

Diarization is where most installs stall, and the cause is paperwork.

The default diarization model, pyannote/speaker-diarization-community-1, is a gated repository on Hugging Face. Its model card is licensed CC-BY-4.0, but you still have to be logged in and accept the access conditions before the download works. WhisperX’s README says it directly: generate a read token, pass it with --hf_token, and accept the user agreement on the model page.

Steps:

  1. Create a free Hugging Face account.
  2. Open the speaker-diarization-community-1 model page while logged in and accept the conditions.
  3. Create a token with read access at huggingface.co/settings/tokens.
  4. Pass it as --hf_token, or as token= in DiarizationPipeline.

Skip step 2 and the download fails with an HTTP error. pyannote’s hint lists both causes, a missing token and unaccepted conditions. The token is usually fine. The account has not agreed to the terms.

A version trap: older WhisperX releases (the 3.4.x line, for example) loaded pyannote/speaker-diarization-3.1 and passed use_auth_token. Current WhisperX defaults to community-1 and requires pyannote-audio>=4.0.0. If a guide tells you to accept the speaker-diarization-3.1 terms, it predates this change. Check what your installed version loads before you accept anything.

After the first run the models sit in the Hugging Face cache, so later runs skip the download.

Cost: VRAM, CPU, and Install Weight

WhisperX runs several models in sequence: the Whisper model, a VAD model, a wav2vec2 aligner, and the pyannote diarization pipeline. They do not all need to be in memory together, which is why the Python example deletes the Whisper model before aligning.

What the sources say, and what they do not:

The install is heavier than faster-whisper’s. The current pyproject.toml requires Python >=3.10,<3.14 and pins torch~=2.8.0. Faster-Whisper alone needs Python 3.9 or newer and has no PyTorch dependency, because CTranslate2 does the inference. If your box already has a different PyTorch for something else, give WhisperX its own virtualenv or container. Mixing them is how you spend a Saturday reading resolver output.

Where the Alignment Models Run Out

Forced alignment needs a wav2vec2 phoneme model per language. Whisper covers around 100 languages. WhisperX alignment does not.

From alignment.py, the defaults today:

Spoken language outside that list? load_align_model has nothing to load for it. You can pass your own with --align_model, but you are then hunting for a suitable wav2vec2 model on Hugging Face and testing it yourself. The README’s contribution section asks people to do exactly that.

Two more limits come straight from the README:

That last one matters for the podcast case. Cross-talk goes to whichever speaker’s diarization turn overlaps each word the longest, because assign_word_speakers picks one speaker per word by maximum overlap. Do not promise anyone a legal-grade transcript.

Which One Should You Run

Use Faster-Whisper alone when:

Use WhisperX when:

If you only need speaker labels and your own timestamps are fine, you can run Faster-Whisper and pyannote separately and join them yourself. That is what WhisperX’s step 4 does, so you would be rewriting assign_word_speakers. Not worth it unless you hit a dependency conflict.

The sane rollout is boring. Start with Faster-Whisper. Run it on your worst audio file. When the transcript is good but you wish it had speaker names or the caption timing makes you wince, add WhisperX. The migration is small, because both take an audio path and both return segments with text and times.

Common Questions

Does WhisperX need a GPU?

No. WhisperX runs on CPU with --device cpu --compute_type int8. Expect long runtimes on large models and slow diarization on long files. A CUDA GPU is the recommended setup, and the README lists CUDA toolkit 12.8 for GPU installs.

Do I need a Hugging Face account for WhisperX diarization?

Yes, for diarization. The default pyannote model is gated, so you need a free account, a read token, and acceptance of the access conditions on the model page. Plain transcription and word alignment work without an account.

Can Faster-Whisper do speaker diarization by itself?

No. Faster-Whisper returns text segments and, with word_timestamps=True, word times, but no speaker labels. Its README lists WhisperX and other projects as the way to add diarization.

Why does WhisperX say my language has no alignment model?

WhisperX alignment depends on a wav2vec2 phoneme model per language, and alignment.py only ships defaults for about 40 languages. Whisper supports many more. For an uncovered language, pass a Hugging Face wav2vec2 model with --align_model and test the timing yourself, or use --no_align and accept Whisper’s own segment times. --highlight_words then stops the CLI with an error.

Will upgrading WhisperX break my diarization setup?

Yes, if you are coming from an older install such as the 3.4.x line. Current WhisperX uses token= instead of use_auth_token= and defaults to speaker-diarization-community-1 with pyannote-audio>=4.0.0. Installs older than 3.3.4 (May 2025) also need from whisperx.diarize import DiarizationPipeline. Update your scripts, accept the new model’s terms on Hugging Face, and test in a fresh virtualenv before touching production. Pin the WhisperX version in your requirements file so a later release cannot swap the default diarization model under you.


Share this post on:

Send a Webmention

Written about this post on your own site? Send a webmention and it'll show up above once verified.


Next Post
Your Borg Target: ZFS + Restricted Keys

Discussion

Powered by Garrul . Sign in with GitHub or Google, or post anonymously.

Related Posts