Rhynio

WhisperX subtitles out of sync? Compare the SRT cue, JSON word times and original audio

If a cue appears early, late or on top of another caption, find out where the timing first differs. Open the plain SRT and aligned JSON from the same WhisperX run, then replay one suspect phrase in the original audio before changing either file.

If the JSON words follow the speech and the cue does not, start with the subtitle export. If the words miss the speech too, check that the audio has the same time origin as the run, then inspect alignment.

Check one cue in your files

  1. Read the SRT in a text editor. Copy the cue text, start and end. Note the previous and next cue text. If cues overlap, check whether the previous cue ends after this one starts. Confirm the media player has the intended track selected and that any subtitle delay is zero.
  2. Find the same spoken words in the JSON. Search a distinctive word under segments and read the nearby words entries in order. Ignore line wraps and use neighboring phrases to distinguish repeats. A cue can cover part of one segment or span more than one. Record the relevant segment bounds separately from the first matched word’s start and last matched word’s end.
  3. Replay the original audio locally. Use the same file or unchanged timeline passed to WhisperX. Seek just before the earlier of the cue and word starts. Listen for the first and last matched words and compare them with both sets of times. If your player shows whole seconds, use the display for a rough check or use a local editor with a finer time ruler.

SRT uses hours, minutes, seconds and milliseconds, as in 00:00:10,420. The WhisperX JSON uses seconds, so that same instant is 10.420.

Worked example with a cue that starts 420 ms early

In this fictional example, cue 2 says “Doors open.” It sits between “Listen.” and “Go.” in both files. All three phrases belong to one JSON segment, but the subtitle writer splits them into separate cues with an 11-character line width and one line per cue.

Plain SRT excerpt
1
00:00:10,000 --> 00:00:12,000
Listen.

2
00:00:10,000 --> 00:00:12,000
Doors open.

3
00:00:10,000 --> 00:00:12,000
Go.
Aligned JSON excerpt
{
  "language": "en",
  "segments": [{
    "start": 10.000,
    "end": 12.000,
    "text": "Listen. Doors open. Go.",
    "words": [
      {"word": "Listen.", "start": 10.000, "end": 10.270},
      {"word": "Doors", "start": 10.420, "end": 10.790},
      {"word": "open.", "start": 10.820, "end": 11.160},
      {"word": "Go.", "start": 11.600, "end": 12.000}
    ]
  }]
}

Suppose local playback puts “Doors” near 10.420 seconds and the end of “open” near 11.160. The SRT starts at 10.000, which is 420 ms early, and ends at 12.000, which is 840 ms late. Its bounds match the containing segment. It also shares a time range with the neighboring cues.

Check how the export grouped the words and whether an editor added padding or changed the times. These observations point to the cue stage. Identifying the exact cause still requires the writer version, export settings or an untouched copy of the SRT.

What to check next

The words miss the speech too
Compare playback with the exact input to the run. Check for a trim, a different time origin or a different cut. Once the timeline matches, check alignment for that phrase and look for alignment warnings.
Both files agree with the speech
If the displayed caption still looks wrong, check the player’s subtitle track and delay, or compare the imported cue in your editing project with the original SRT.
The comparison is unresolved
If the first word has no start, the last word has no end, or multiple matches remain possible, keep the affected boundary unresolved. An interior word can help locate the phrase but cannot supply the missing edge. If playback is on a different timeline, repeat the check on the original input before comparing offsets.

How the upstream plain SRT writer changed

Check the version that wrote the file. These examples describe the aligned-word path of two upstream tags with word highlighting off.

  • v3.7.6 takes both bounds from the segment associated with the cue’s first word. In the worked example, it prints 10.000 to 12.000 seconds for “Doors open.” v3.7.6 writer source
  • v3.8.6 takes the earliest available word start and latest available word end when both kinds of timestamp exist. The example cue would run from 10.420 to 11.160. If a cue is built but either collection is empty, it falls back to the first contributing segment’s bounds. An available minimum or maximum can still belong to an interior word if an edge word is missing its time. v3.8.6 writer source

The change merged on February 13, 2026 after an early and overlapping cue report. A separate report against 3.8.7rc1 describes an empty word list contributing no cue at all in that path. That case leaves no emitted cue to compare. Original timing report, merged writer change, empty word list report