Skip to content

Output Formats

One run can write five files, because different readers want different shapes of the same transcript. All examples below are real output from the lab's JFK clip (transcript t03), made with:

whisper jfk.flac --model base \
  --output_format all --output_dir out/jfk-base

txt — for reading

And so, my fellow Americans, ask not what your
country can do for you, ask what you can do
for your country.

The words, punctuated, nothing else. Meeting notes, quotes, anything a human will simply read: this is the one.

srt — subtitles for video files

1
00:00:00,000 --> 00:07,340
And so, my fellow Americans, ask not what
your country can do for you,

2
00:00:07,740 --> 00:10,360
ask what you can do for your country.

SubRip format: numbered cues with start and end times. The subtitle format most video players, editors and upload sites (YouTube included) accept. Notice the comma in the timestamps — that is what distinguishes SRT from its web cousin.

vtt — subtitles for the web

WEBVTT

00:00.000 --> 00:07.340
And so, my fellow Americans, ask not what
your country can do for you,

WebVTT: the same cues with periods instead of commas and a WEBVTT header. This is the format HTML5 video players use. Same timings, different envelope — if a player rejects one, try the other.

tsv — timings for spreadsheets

start   end text
0   7340    And so, my fellow Americans, ask not...

Tab-separated, times in milliseconds. Unlovely, and exactly right when the next step is a spreadsheet, a database, or a script that wants times as numbers rather than as clock strings.

json — everything, for programs

The JSON file carries the full text, the detected language, and a list of segments, each with its times and the model's own statistics:

{
  "text": " And so, my fellow Americans, ...",
  "segments": [
    { "id": 0, "start": 0.0, "end": 7.34,
      "text": " And so, my fellow Americans, ...",
      "avg_logprob": -0.286,
      "no_speech_prob": 0.034 }
  ],
  "language": "en"
}

Word timings

Add --word_timestamps True and each segment grows a words list (t07):

{"word": " And", "start": 0.0, "end": 0.52,
 "probability": 0.64}
{"word": " so,", "start": 0.52, "end": 0.84,
 "probability": 0.99}

A start, an end and a confidence for every word. That is the raw material for karaoke-style highlighting, for jumping a player to the moment a phrase was spoken, and for finding the words the model was unsure about — sort by probability and proofread those first.

Check: run one clip with --output_format all and open each file. Five minutes of looking now saves guessing which format a tool wants later.