# whisperX

> WhisperX: Automatic Speech Recognition with Word-level Timestamps (& Diarization)

- Type: agent or tool
- Field: Audio & Video
- Repository: https://github.com/m-bain/whisperX
- GitHub stars: 25655
- Licence: BSD-2-Clause
- Language: Python
- Last push: 2026-11-21
- Page: https://imutechz.in/agents/whisperx

## What it is
WhisperX is an automatic speech recognition system that adds word-level timestamps and speaker diarization to OpenAI's Whisper model. It uses batched inference with the faster-whisper backend to achieve 70x realtime transcription speed while requiring less than 8GB GPU memory for the large-v2 model. The system aligns transcriptions using wav2vec2 for accurate word timing and integrates pyannote-audio for speaker identification.

## Features
- Batched inference for 70x realtime transcription with whisper large-v2
- faster-whisper backend requiring <8GB GPU memory for large-v2
- Word-level timestamps via wav2vec2 forced alignment
- Speaker diarization using pyannote-audio with speaker ID labels
- Voice activity detection preprocessing to reduce hallucination
- Optional Numba-accelerated alignment for 30x-100x speedup on long audio

## Best for
- Transcription needing precise word-level timestamps
- Multi-speaker audio with speaker identification
- High-throughput batch transcription pipelines
- Meeting and conversation analysis

## Pros
- 70x realtime speed with large-v2 model
- Low GPU memory footprint (<8GB for large-v2)
- Accurate word-level timestamps via forced alignment
- Built-in speaker diarization and VAD

## Cons
- Requires CUDA toolkit 12.8 for GPU acceleration
- Needs ffmpeg and rust dependencies
- Speaker diarization requires pyannote-audio (may need Hugging Face token)

## Install
```
pip install whisperx
```

## Usage
```
uvx whisperx
```

Tags: whisperx, speech-recognition, asr, transcription, diarization, word-timestamps, faster-whisper, pyannote
