A plain transcript tells you what was said, but not when. If you want subtitles for a video, run Whisper with an output format that carries timings. Whisper can produce output in several formats: use the flag --output_format with the options txt, vtt, srt, tsv, json, or all. Plain txt gives a transcript; vtt and srt produce timed-text output, and json includes additional information that may be helpful for data processing.
Ask for an SRT file
For a subtitle file you can load in a video player or editor, ask for srt:
whisper practice-note.wav --model turbo --output_format srt
Whisper writes a file with the same name as the audio file and the extension .srt, in which each subtitle block has a number, a start and end time, and the words spoken in that stretch. Use the same practice recording as the transcription guide — a short recording of yourself reading the fictional sentence “The lighthouse keeper named Mara checked the lamp at noon.” — saved as practice-note.wav.
Make the lines readable with word timestamps
By default, Whisper times whole segments, which can be long blocks of text on screen for several seconds. To break them into short lines, turn on word-level timestamps and set a line width. You can specify a maximum number of characters per line and a maximum number of lines per timed segment using the --max_line_width and --max_line_count parameters — but to use either one, you must also enable word-level timestamps with the --word_timestamps flag.
whisper practice-note.wav --model turbo --output_format srt --word_timestamps True --max_line_width 42 --max_line_count 2
Open the .srt file in a text editor and check the first block against the audio:
| Check | What you should see |
|---|---|
| File name | practice-note.srt next to the audio file |
| First block | A number, a time range, and the words “The lighthouse keeper named Mara checked the lamp at noon.” |
| Line length | No line longer than 42 characters when you set --max_line_width 42 |
| Timing | The subtitle appears while the sentence is spoken, not before or after it |
If a line is too long, the word-timestamp flag was missing — the line options need it. Expected result. We checked the Whisper output-format guide and the Whisper README. We did not run Whisper on a sample recording.
Limits
An SRT file is a draft, not a finished subtitle track: Whisper’s timings mark whole utterances, and word timestamps are estimates, so check every cue against the audio before you publish the video. A misheard word becomes a wrong subtitle, and the timing will not fix it. The turbo model is for transcription; if the recording is not in English and you want English subtitles, use a multilingual model with --task translate instead, as in the translation guide. We did not run Whisper, so no subtitle text here is a recorded result.
