New Tool Radar

AI Concepts

How to Get Timestamps in a Transcript with verbose_json

Get timestamps in a transcript with verbose_json so each segment carries its start and end time.

Schematic illustration of get timestamps in a transcript with verbose_json: step one ask for verbose_json, step two read the segments, step three check the times.

The plain transcript is one block of text, which is hard to navigate in a long meeting. Asking for the verbose_json response format returns segment-level timing: each segment has a start, an end and its text. That lets you jump to the moment a decision was made, instead of reading the whole transcript to find it.

Prerequisites

  • An audio file to transcribe, in a supported format.
  • The whisper-1 model, which supports timestamp granularities.
  • A way to read JSON.

Steps

Step 1: Ask for verbose_json

Send the transcription request with response_format set to verbose_json and timestamp granularities set to segment. The timestamp granularities parameter is only supported for whisper-1.

Step 2: Read the segments

Read the returned segments in order: each one has start, end and text. The segments cover the audio in order, with no gaps between them.

Step 3: Check the times

Pick one segment and play the audio at its start time; the words should match. If the times drift from the audio, the segments are still useful for navigation, but do not quote them as exact.

Worked example: Bluebell Bakery team meeting

The fictional Bluebell Bakery transcribes a 41-second meeting clip with verbose_json and gets 3 segments.

Segment Start End Text
1 0.0 12.4 ‘Good morning, let’s start.’
2 12.4 28.9 ‘Flour arrives on Tuesday.’
3 28.9 41.2 ‘Meeting closed.’

The 3 segments run 12.4, 16.5 and 12.3 seconds, totalling 41.2 seconds with no gaps, and each carries its start and end time.

Expected result. The transcript comes back as segments with start and end times, covering the audio in order. UNTESTED: this guide was not run against a live model or API. The worked example below is fictional practice material, and its result is the expected result, not a measured one.

Limits

  • Timestamp granularities are only supported for whisper-1, not for the newer transcribe models.
  • Segment times are approximate; do not quote them as exact to the second.
  • This guide does not cover word-level timestamps, which need a different tool.

Sources

See all