KitGitHub

WhisperX: captions on the exact word

By Nov 11, 2026 1.3K views 1 min read

Works withGitHub
SYNCWhisperX: captions on the exact word

How to do it

  1. Install pip install whisperx (needs ffmpeg).
  2. Before you align, write every number in your script as words (2014 → twenty fourteen, $15 → fifteen dollars): digits can't be aligned and get no timing.
  3. On a Mac whisperx take.wav --compute_type int8 --device cpu --highlight_words True. You get an .srt with each word highlighted as it's spoken, plus a JSON with every word's start and end.
  4. Two speakers? Add --diarize with a free Hugging Face token. Free and open source (BSD-2).

Get the next one

A new AI tool every day on Instagram, and a free kit for the ones people come back for.

Follow @pedroaitech

From the reel

Comment SYNC

Comment the keyword on the reel and this kit comes by DM. Same kit, in your inbox.

More from the library

All 98 kits