Sub topic 13
Checking Captions Against the Audio
Assume you already know the basics of WebVTT, cue timing, and how to play audio or video in a review tool. This chapter focuses on verifying an AI-generated caption draft against the source audio. A caption file can be valid WebVTT and still contain missing words, wrong names, or misleading timing.
What to check
Review captions in two passes. First check the file structure. Then compare every cue with the audio.
| Check | Question |
|---|---|
| Timing | Does each cue start and end at the right moment? |
| Text | Does the text match the spoken words? |
| Meaning | Could a typo change the meaning? |
| Speakers | Can learners tell who is speaking? |
| Sounds | Are important non-speech sounds identified? |
| Reading rate | Can a learner read the cue before it disappears? |
Structural checks find mechanical problems. They cannot prove that the caption says what the speaker said. For that, listen to the source.
Use a two-pass review
Pass 1: Check timing and structure
Look for these problems before listening closely:
- A cue ends before it starts.
- Cues appear out of chronological order.
- Two cues overlap when they should not.
- A cue stays on screen too briefly.
- Text is placed at a scene change or over an important visual.
- A cue contains unsupported formatting or broken characters.
A simple Python check can catch invalid timing and out-of-order starts:
import re
TIME = re.compile(
r"(\d+):(\d{2}):(\d{2})\.(\d{3}) --> "
r"(\d+):(\d{2}):(\d{2})\.(\d{3})"
)
def to_seconds(hours, minutes, seconds, milliseconds):
return (
int(hours) * 3600
+ int(minutes) * 60
+ int(seconds)
+ int(milliseconds) / 1000
)
def check_vtt(text):
problems = []
previous_start = -1.0
for line_number, line in enumerate(text.splitlines(), 1):
match = TIME.search(line)
if not match:
continue
start = to_seconds(*match.groups()[:4])
end = to_seconds(*match.groups()[4:])
if end <= start:
problems.append(f"line {line_number}: end is not after start")
if start < previous_start:
problems.append(
f"line {line_number}: cue starts before the previous cue"
)
previous_start = start
return problems
sample = """WEBVTT
00:00:01.000 --> 00:00:03.000
Welcome to the lesson.
00:00:02.500 --> 00:00:04.000
We will check captions.
"""
print(check_vtt(sample))This script does not check text accuracy, overlap between otherwise ordered cues, or reading speed. Treat it as a filter, not as approval.
Pass 2: Compare captions with the source
Play the audio and follow the captions from beginning to end. Pause and replay unclear sections. Check:
- Technical terms, names, numbers, and URLs letter by letter.
- Negations such as “not” and modal words such as “may.”
- Sentence boundaries and punctuation.
- Whether a speaker change is clear.
- Meaningful sounds such as
[door closes]or[music]. - Whether a caption appears early enough for the learner to connect it with the speech.
- Whether the caption disappears only after the learner has had time to read it.
Do not silently fill gaps from context. Mark uncertain words, locate the matching audio time, and resolve them by replaying or consulting the script.
Record corrections
Keep a change record instead of replacing the draft without notes.
| Time | Draft | Correction | Reason |
|---|---|---|---|
| 00:01:42.300 | “cache” | “cash” | Audio and lesson context confirm the word |
A second reviewer can use this record to check disputed decisions. Human sign-off should confirm that the final captions match the audio and meet the platform’s accessibility rules.
Exercise
A caption has the correct words, but it appears 1.5 seconds before the speaker says them. What should you do?
Show answer
Move the cue closer to the speech, replay the transition to confirm the timing, and record the correction. Correct wording alone does not make the caption accurate.