Skip to content
Blog
W

WhisperX

Whisper transcription with accurate word-level timestamps and speaker labels.

Verdict: is WhisperX a fit?

Good fit for

  • Captions
  • Cutting recorded footage from a transcript

Not a fit for

  • Machines without a decent GPU (it will be slow)

Install

  1. pip

    pip install whisperx

    Source: PyPI

Not verified: we have not run these commands. They come from the listed sources.

Context

WhisperX runs Whisper with batched inference, then aligns every word to the audio with a wav2vec2 model and can label speakers with pyannote. Accurate per-word timing is what makes karaoke-style captions and transcript-based editing possible.

Requirements

  • Python 3.10–3.13
  • A GPU is strongly recommended
  • Hugging Face token for diarization

Key facts

  • Batched inference reaches 70x realtime with large-v2 on the faster-whisper backend, using under 8 GB of GPU memory at beam_size=5 (project claim).

    README

    Documented. Based on official documentation and published sources; not run by us.
  • Word-level timestamps come from wav2vec2 forced alignment; speaker labels come from pyannote-audio diarization.

    README

    Documented. Based on official documentation and published sources; not run by us.
  • GPU use needs the CUDA toolkit 12.8; CPU-only use is also supported.

    README, CUDA Installation

    Documented. Based on official documentation and published sources; not run by us.
  • Accepted at INTERSPEECH 2023.

    README

    Documented. Based on official documentation and published sources; not run by us.

Strengths and limitations

Strengths

  • Word-level timestamps far more precise than plain Whisper.
  • Speaker diarization built in.
  • Permissive license.

Limitations

  • Heavy Python/GPU setup.
  • Words with symbols or numbers (like '£13.60') may not get timestamps.

Alternatives considered

Tools that do the same job as WhisperX. Stars were checked on the date shown on each page.

WhisperX compared with its alternatives
ProjectLicenseLanguageLayerStars
W
WhisperXthis page

Whisper transcription with accurate word-level timestamps and speaker labels.

BSD-2-Clause · 25.1k stars

BSD-2-ClausePythonVoice captions25.1k
W
Whisper (OpenAI)

OpenAI's open-source speech recognition model.

MIT · 112.2k stars

MITPythonVoice captions112.2k

Works well with

Tools that sit next to WhisperX in the same stack.

Tools that work with WhisperX
ProjectLicenseLanguageLayerStars
FFmpeg logo
FFmpeg

The command-line Swiss army knife for audio and video.

LGPL-2.1-or-later · 66.7k stars

LGPL-2.1-or-laterCAssembly66.7k
Auto-Editor logo
Auto-Editor

Automatically cut silence and dead air out of recordings.

Unlicense · 5.8k stars

UnlicenseNimAssembly5.8k
Remotion logo
Remotion

Make videos programmatically with React.

Remotion License (source-available) · 71.4k stars

Remotion License (source-available)not OSITypeScriptRender engine71.4k
HyperFrames logo
HyperFrames

Write HTML, render it to MP4 - built with coding agents in mind.

Apache-2.0 · 80.4k stars

Apache-2.0TypeScriptRender engine80.4k
Manim (Community Edition) logo
Manim (Community Edition)

The Python animation engine behind math explainer videos.

MIT · 42.3k stars

MITPythonRender engine42.3k

Sources

  1. WhisperX on GitHub (accessed )
  2. PyPI: whisperx (accessed )
  3. m-bain/whisperX README (accessed )

Spotted a mistake or outdated fact?Report an error(opens a GitHub issue).