Audio & MusicOpen source codem-bain/whisperX

WhisperX: Open Source AI Repository & Self-Hosting Guide

High-speed open-source speech recognition framework combining faster-whisper, wav2vec2 forced phoneme alignment, and pyannote speaker diarization.

GitHub Stars
26,475 stars
Repository License
BSD-2-Clause
Last Push (UTC)
Nov 21, 2026
Check the repo's license. Model weights may have a different license.
git clone https://github.com/m-bain/whisperX.git
View on GitHub
Installpip install whisperx

WhisperX: Architecture & Practical Workflow

Standard Whisper timestamps can drift across long pauses; WhisperX runs batched CTranslate2 inference (up to 70x real-time on GPU), aligns every word against phoneme models for tight subtitle boundaries, and labels speakers cleanly via pyannote-audio.

Recommended End-to-End Pipeline

Transcribe long interviews with `whisperx audio.mp4 --diarize --output_format srt`, then inspect word timings in Subtitle Edit or feed transcripts to Auto-Editor.

Runtime Target
Self-Hosted / CLI & Python (GitHub)
Primary Users
Video Editors, Podcasters, Transcription Pipelines
Code License
BSD-2-Clause
Focus Topics
open-source, github, transcription, diarization, subtitles

Quick Setup & Installation Steps

Platform target: Self-Hosted / CLI & Python (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/m-bain/whisperX.git && cd whisperX`.
  2. 2Review the BSD-2-Clause license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `pip install whisperx` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Transcribe long interviews with `whisperx audio.mp4 --diarize --output_format srt`, then inspect word timings in Subtitle Edit or feed transcripts to Auto-Editor.)

Hardware & VRAM Notes

Runs locally on modern workstations or GPU-backed servers; audio/video processing speed scales significantly with hardware acceleration.

Accelerator / GPU

GPU acceleration (CUDA or Apple Silicon) speeds up neural audio synthesis, transcription, and clipping; CPU fallback may work for shorter clips.

RAM & Storage

16 GB RAM and SSD scratch space recommended for FFmpeg media pipelines and cached voice/audio checkpoints.

Runtime Target

Self-Hosted / CLI & Python (GitHub)

Strengths & Best For

  • Word-level timestamp alignment for crisp video subtitles
  • Built-in speaker diarization ("who spoke when")
  • Batched Whisper inference up to 70x real-time on GPU
  • Best suited for: Video Editors, Podcasters, Transcription Pipelines

Limitations & Caveats

  • Speaker diarization uses pyannote weights requiring a free Hugging Face token
  • Command-line usage unless wrapped in a UI
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Audio)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted WhisperX vs. Hosted Alternatives (OpenAI Whisper & Whisper.cpp)
FactorWhisperX (Self-Hosted)OpenAI WhisperWhisper.cpp
Execution & PrivacyRuns locally via Self-Hosted / CLI & Python (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaBSD-2-Clause code; bound only by local CPU/GPU hardware.Open Source; subject to vendor free-tier limits or paid plans.Open Source; subject to vendor free-tier limits or paid plans.
Primary FitWord-level timestamp alignment for crisp video subtitles; Built-in speaker diarization ("who spoke when")Open-source speech recognition model with multilingual auto-transcription.Ultra-fast C/C++ port of OpenAI's Whisper speech-to-text model running offline on CPUs, Apple Metal, and CUDA.
Key Trade-offSpeaker diarization uses pyannote weights requiring a free Hugging Face tokenRequires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for WhisperX workflows.

Cyberpunk Synthwave Studio Master SoundtrackAudio · Music, Synthwave, Cyberpunk, Soundtrack
Open in Studio
Silicon Valley Founder Voiceover & ScriptAudio · Voiceover, Audio, Script, Founder
Open in Studio

More Open Source Audio & Music Repositories

Frequently Asked Questions

What does WhisperX do and how does it work?

WhisperX (m-bain/whisperX) is an open-source audio & music project with 26,475 stars on GitHub. High-speed open-source speech recognition framework combining faster-whisper, wav2vec2 forced phoneme alignment, and pyannote speaker diarization. Standard Whisper timestamps can drift across long pauses; WhisperX runs batched CTranslate2 inference (up to 70x real-time on GPU), aligns every word against phoneme models for tight subtitle boundaries, and labels speakers cleanly via pyannote-audio.

Is WhisperX free to self-host and use commercially?

WhisperX provides open source code licensed under BSD-2-Clause. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does WhisperX require?

WhisperX targets Self-Hosted / CLI & Python (GitHub). Typical installation runs via `pip install whisperx`. Speaker diarization uses pyannote weights requiring a free Hugging Face token

How does self-hosting WhisperX compare to hosted tools like OpenAI Whisper?

Self-hosting WhisperX gives you full local data control, zero per-usage vendor fees, and customizable Self-Hosted / CLI & Python (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, OpenAI Whisper (Open Source) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is WhisperX actively maintained and what workflow fits it best?

Repository metadata records 26,475 stars on GitHub with the latest recorded push on Nov 21, 2026. Transcribe long interviews with `whisperx audio.mp4 --diarize --output_format srt`, then inspect word timings in Subtitle Edit or feed transcripts to Auto-Editor.