Segment timestamps mark whole phrases, which can run long for subtitles. Word-level timestamps give the start and end of every word, so you can regroup them into short lines that fit a screen.
What you need
- faster-whisper installed in a Python environment
- An audio file converted to 16 kHz mono WAV
- A subtitle target in mind, such as short SRT lines
Step 1: Enable word timestamps
Call model.transcribe with word_timestamps=True, for example segments, info = model.transcribe(‘sample.wav’, word_timestamps=True). The option is listed among the faster-whisper transcription options alongside language selection, beam search, and voice activity detection.
Step 2: Read the word timings
Each segment holds a words list with start, end, and text for every word. Print them to check the alignment on a short clip before trusting the whole file; estimated timestamps need review before becoming captions.
Step 3: Regroup into short subtitle lines
Group the words into lines of a few seconds each instead of using the long segments as they come. SRT timestamps use commas, as in 00:00:07,600, while WebVTT uses dots and needs a WEBVTT header line.
Worked example: word timings for one sentence
The table below is a synthetic example. The word_timestamps option and the SRT comma rule come from the cited faster-whisper guides; the timings are illustrative.
| Word | Start | End |
|---|---|---|
| And | 0.00s | 0.20s |
| so | 0.20s | 0.35s |
| my | 0.35s | 0.50s |
Expected result (UNTESTED). each word carries a start and end time, and regrouped lines fit short subtitle durations. This check was not run live; the option and the SRT rule come from the cited faster-whisper guides.
Limits
- Word timestamps are estimates; check names, numbers, and negations by listening.
- Whisper does not know who is talking; speaker labels need diarization.
- Long pauses inside a segment can make word gaps look like errors.
- Regrouping words changes line breaks only, not the recognised text.
