{"skills":[{"name":"Check captions against recorded audio","description":"Compare a caption track with timestamped audio observations to find missing speech, speaker cues and meaningful sounds.","content":"# Check captions against recorded audio\n\nCompare a caption track with timestamped audio observations to find missing speech, speaker cues and meaningful sounds.\n\n## When to use this skill\n\n- Someone has a recorded video with a caption file (WebVTT, SRT or burned-in captions) and wants to know whether it is complete.\n- Automatic captions from a video platform need checking before a video is published.\n- A reviewer has timestamped notes of what can be heard and wants them compared with the caption track.\n\n## When not to use it\n\n- Live captions for a broadcast, webinar or meeting. WCAG 1.2.4 Captions (Live) applies and the review has to happen in real time.\n- Subtitles translated into another language. Checking a translation needs a qualified translator; this method checks same-language captions against the audio.\n- Audio description of what can be seen, for blind and partially sighted viewers (WCAG 1.2.3 and 1.2.5). That is a separate review of the picture.\n\n## What you need\n\n- A prerecorded video with synchronised audio, or a timecoded reviewer log of its audible content.\n- Caption cues with times, text, and context showing which speaker or sound matters to understanding.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Can you supply the video itself, or a reviewer's timestamped log of everything audible? Captions cannot be checked against audio from the caption file alone.\n- Is the video a media alternative for text that is clearly labelled as such? WCAG 1.2.2 does not require captions in that case.\n- Is there an agreed timing tolerance or house caption style for speaker labels and sound tags? Without one, report only timing errors that the evidence shows affect understanding.\n- If there are several caption tracks, which one should be reviewed?\n\n## Method\n\n1. Confirm the scope: prerecorded synchronised media with an audio track, the caption track to review, and whether the media is a clearly labelled alternative for text, which WCAG 2.2 success criterion 1.2.2 exempts. Note the format (WebVTT, SRT, TTML or open captions burned into the picture).\n2. Work from the audio, not the caption file. Play each segment, or use a human reviewer's timestamped log, and list everything a viewer needs: speech, who is speaking, and meaningful sounds and music. W3C's definition of captions includes sound effects, music, laughter, speaker identification and location.\n3. Compare each cue with its segment. Check the words match what was said, with no dropped words that change the meaning (a missing 'not' reverses a sentence). Mark missing-speech where audible dialogue has no cue.\n4. Check speaker identification wherever the speaker is off screen, several people talk, or a change of speaker would otherwise be unclear. A speaker who can be seen talking usually needs no label.\n5. Check sounds and music that change the meaning or explain what happens next, such as an alarm, a knock, a phone ringing or music that sets up a scene. Leave out background noise that adds nothing.\n6. Check timing against the audio: a cue should appear while its speech or sound is heard, not after the answer or reaction it leads to. Use the agreed tolerance or the editor's judgement of harm rather than an invented fixed limit.\n7. Mark a segment unknown when there is no audio or reviewer evidence for it, rather than passing it. Record each finding with its time or cue ID and the smallest correction, in observation order, listing several issues for one segment in the order missing-speech, missing-sound, missing-speaker, timing.\n\n## Checks before you deliver\n\n- A grammatically polished subtitle file can still omit an alarm that explains why a scene changes.\n- A generic tolerance for all cues can hide a meaningful timing error. Use the supplied timing evidence or agreed editorial tolerance.\n- Automatic captions are not sufficient unless someone has confirmed them against the audio. W3C gives an example where a dropped 'not' turns cooking advice into a fire risk.\n- Comparing the caption file with a transcript proves nothing about synchronisation, or about sounds the transcript also left out.\n- Dialogue-only subtitles are not captions. They leave out the sound effects and speaker cues that deaf and hard of hearing viewers need.\n\n## How to present the result\n\nLead with a one-line verdict: complete, or the number of cues needing correction plus any segments that could not be checked. Then give a table in time order with the time or cue ID, what is heard, what the caption shows, the issue and the exact replacement cue text. Finish with the segments still needing audio evidence and, if asked, a corrected WebVTT or SRT extract ready to paste.\n\n## Worked example\n\n**Request:** Review these prerecorded cues against the audio notes. All supplied captions are in sync.\n\n**Supplied material:**\n\n```text\nA 00:02 visible clerk says 'Ready'. Caption: Ready.\nB 00:05 unseen second speaker, Rae, says 'Wait'. Caption: Wait. No visual or other cue identifies Rae.\nC 00:08 audible fire alarm prompts the evacuation. Caption: [none]\n```\n\n**Answer:** At 00:05, identify Rae in the caption for \u201cWait\u201d. At 00:08, add a synchronised cue such as \u201c[fire alarm sounds]\u201d so the evacuation makes sense. The clerk\u2019s 00:02 cue is adequate.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn findings in observation order as {id,issue}. Use missing-speech, missing-sound, missing-speaker or timing when the source demonstrates that specific issue. Use unknown when the segment lacks audio evidence. If a segment has several issues, report them in that code order. Omit segments with adequate captions.\n\n## Sources\n\n- [W3C Understanding Captions (Prerecorded)](https:\/\/www.w3.org\/WAI\/WCAG22\/Understanding\/captions-prerecorded.html): Explains WCAG 2.2 success criterion 1.2.2 (Level A): captions for all prerecorded audio in synchronised media, except a media alternative for text that is clearly labelled. The intent says captions identify who is speaking and include meaningful sound effects, which is why the skill checks speakers and sounds as well as words.\n- [W3C WAI Captions\/Subtitles](https:\/\/www.w3.org\/WAI\/media\/av\/captions\/): W3C guidance that captions are synchronised text of the speech and non-speech audio needed to understand the content, that automatic captions are not sufficient unless confirmed fully accurate, and that WebVTT voice tags can identify speakers. The skill relies on it for checking against the audio and for speaker labels.\n- [W3C technique G87: Providing closed captions](https:\/\/www.w3.org\/WAI\/WCAG22\/Techniques\/general\/G87): The technique's test is to turn captions on, play the media and check that captions of all dialogue and important sounds are visible and in the language of the video. The skill applies the same test cue by cue.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/check-prerecorded-captions\n","scope":"contextual","trigger_keywords":["Check captions against recorded audio","check-prerecorded-captions","check prerecorded captions","Are the captions on this video complete enough to publish?","Are the captions on this video complete enough to publish","check these captions","review the captions","prerecorded captions"],"is_private":true,"is_active":true,"scripts":[{"name":"check-prerecorded-captions-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"check-prerecorded-captions-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: check-prerecorded-captions\ndescription: \"Check a recorded video's captions against its audio, cue by cue, for missing dialogue, unidentified speakers, missing meaningful sounds and badly timed cues. Use when someone asks whether the captions or subtitles on a video are complete, accurate or meet WCAG 1.2.2.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/check-prerecorded-captions\n---\n\n# Check captions against recorded audio\n\nCompare a caption track with timestamped audio observations to find missing speech, speaker cues and meaningful sounds.\n\n## When to use this skill\n\n- Someone has a recorded video with a caption file (WebVTT, SRT or burned-in captions) and wants to know whether it is complete.\n- Automatic captions from a video platform need checking before a video is published.\n- A reviewer has timestamped notes of what can be heard and wants them compared with the caption track.\n\n## When not to use it\n\n- Live captions for a broadcast, webinar or meeting. WCAG 1.2.4 Captions (Live) applies and the review has to happen in real time.\n- Subtitles translated into another language. Checking a translation needs a qualified translator; this method checks same-language captions against the audio.\n- Audio description of what can be seen, for blind and partially sighted viewers (WCAG 1.2.3 and 1.2.5). That is a separate review of the picture.\n\n## What you need\n\n- A prerecorded video with synchronised audio, or a timecoded reviewer log of its audible content.\n- Caption cues with times, text, and context showing which speaker or sound matters to understanding.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Can you supply the video itself, or a reviewer's timestamped log of everything audible? Captions cannot be checked against audio from the caption file alone.\n- Is the video a media alternative for text that is clearly labelled as such? WCAG 1.2.2 does not require captions in that case.\n- Is there an agreed timing tolerance or house caption style for speaker labels and sound tags? Without one, report only timing errors that the evidence shows affect understanding.\n- If there are several caption tracks, which one should be reviewed?\n\n## Method\n\n1. Confirm the scope: prerecorded synchronised media with an audio track, the caption track to review, and whether the media is a clearly labelled alternative for text, which WCAG 2.2 success criterion 1.2.2 exempts. Note the format (WebVTT, SRT, TTML or open captions burned into the picture).\n2. Work from the audio, not the caption file. Play each segment, or use a human reviewer's timestamped log, and list everything a viewer needs: speech, who is speaking, and meaningful sounds and music. W3C's definition of captions includes sound effects, music, laughter, speaker identification and location.\n3. Compare each cue with its segment. Check the words match what was said, with no dropped words that change the meaning (a missing 'not' reverses a sentence). Mark missing-speech where audible dialogue has no cue.\n4. Check speaker identification wherever the speaker is off screen, several people talk, or a change of speaker would otherwise be unclear. A speaker who can be seen talking usually needs no label.\n5. Check sounds and music that change the meaning or explain what happens next, such as an alarm, a knock, a phone ringing or music that sets up a scene. Leave out background noise that adds nothing.\n6. Check timing against the audio: a cue should appear while its speech or sound is heard, not after the answer or reaction it leads to. Use the agreed tolerance or the editor's judgement of harm rather than an invented fixed limit.\n7. Mark a segment unknown when there is no audio or reviewer evidence for it, rather than passing it. Record each finding with its time or cue ID and the smallest correction, in observation order, listing several issues for one segment in the order missing-speech, missing-sound, missing-speaker, timing.\n\n## Checks before you deliver\n\n- A grammatically polished subtitle file can still omit an alarm that explains why a scene changes.\n- A generic tolerance for all cues can hide a meaningful timing error. Use the supplied timing evidence or agreed editorial tolerance.\n- Automatic captions are not sufficient unless someone has confirmed them against the audio. W3C gives an example where a dropped 'not' turns cooking advice into a fire risk.\n- Comparing the caption file with a transcript proves nothing about synchronisation, or about sounds the transcript also left out.\n- Dialogue-only subtitles are not captions. They leave out the sound effects and speaker cues that deaf and hard of hearing viewers need.\n\n## How to present the result\n\nLead with a one-line verdict: complete, or the number of cues needing correction plus any segments that could not be checked. Then give a table in time order with the time or cue ID, what is heard, what the caption shows, the issue and the exact replacement cue text. Finish with the segments still needing audio evidence and, if asked, a corrected WebVTT or SRT extract ready to paste.\n\n## Worked example\n\n**Request:** Review these prerecorded cues against the audio notes. All supplied captions are in sync.\n\n**Supplied material:**\n\n```text\nA 00:02 visible clerk says 'Ready'. Caption: Ready.\nB 00:05 unseen second speaker, Rae, says 'Wait'. Caption: Wait. No visual or other cue identifies Rae.\nC 00:08 audible fire alarm prompts the evacuation. Caption: [none]\n```\n\n**Answer:** At 00:05, identify Rae in the caption for \u201cWait\u201d. At 00:08, add a synchronised cue such as \u201c[fire alarm sounds]\u201d so the evacuation makes sense. The clerk\u2019s 00:02 cue is adequate.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn findings in observation order as {id,issue}. Use missing-speech, missing-sound, missing-speaker or timing when the source demonstrates that specific issue. Use unknown when the segment lacks audio evidence. If a segment has several issues, report them in that code order. Omit segments with adequate captions.\n\n## Sources\n\n- [W3C Understanding Captions (Prerecorded)](https:\/\/www.w3.org\/WAI\/WCAG22\/Understanding\/captions-prerecorded.html): Explains WCAG 2.2 success criterion 1.2.2 (Level A): captions for all prerecorded audio in synchronised media, except a media alternative for text that is clearly labelled. The intent says captions identify who is speaking and include meaningful sound effects, which is why the skill checks speakers and sounds as well as words.\n- [W3C WAI Captions\/Subtitles](https:\/\/www.w3.org\/WAI\/media\/av\/captions\/): W3C guidance that captions are synchronised text of the speech and non-speech audio needed to understand the content, that automatic captions are not sufficient unless confirmed fully accurate, and that WebVTT voice tags can identify speakers. The skill relies on it for checking against the audio and for speaker labels.\n- [W3C technique G87: Providing closed captions](https:\/\/www.w3.org\/WAI\/WCAG22\/Techniques\/general\/G87): The technique's test is to turn captions on, play the media and check that captions of all dialogue and important sounds are visible and in the language of the video. The skill applies the same test cue by cue.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/check-prerecorded-captions\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/check-prerecorded-captions\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Two off-screen speakers and an alarm\n\nReview these prerecorded cues against the audio notes. All supplied captions are in sync.\n\n## Supplied material\n\nA 00:02 visible clerk says 'Ready'. Caption: Ready.\nB 00:05 unseen second speaker, Rae, says 'Wait'. Caption: Wait. No visual or other cue identifies Rae.\nC 00:08 audible fire alarm prompts the evacuation. Caption: [none]\n\n## Worked answer\n\nAt 00:05, identify Rae in the caption for \u201cWait\u201d. At 00:08, add a synchronised cue such as \u201c[fire alarm sounds]\u201d so the evacuation makes sense. The clerk\u2019s 00:02 cue is adequate.\n\n## Reasoning\n\nThe missing alarm removes the reason for the evacuation. The off-screen intervention needs a speaker cue.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"Review these prerecorded cues against the audio notes. All supplied captions are in sync.\nReturn only the JSON specified in SKILL.md for this test.\n\nA 00:02 visible clerk says 'Ready'. Caption: Ready.\nB 00:05 unseen second speaker, Rae, says 'Wait'. Caption: Wait. No visual or other cue identifies Rae.\nC 00:08 audible fire alarm prompts the evacuation. Caption: [none]\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"findings\": [\n        {\n            \"id\": \"B\",\n            \"issue\": \"missing-speaker\"\n        },\n        {\n            \"id\": \"C\",\n            \"issue\": \"missing-sound\"\n        }\n    ]\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The missing alarm removes the reason for the evacuation. The off-screen intervention needs a speaker cue.\n"},{"path":"tests\/case-2\/request.txt","content":"Review these recorded segments. The editor confirmed the stated delay prevents the exchange being followed.\nReturn only the JSON specified in SKILL.md for this test.\n\nD 00:10 visible host asks 'Left or right?' Matching caption appears only after the answer at 00:16.\nE 00:16 guest says 'Left'. No caption for this line.\nF 00:19 caption says 'Thanks'. No audio or audio reviewer observation is available for F.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"findings\": [\n        {\n            \"id\": \"D\",\n            \"issue\": \"timing\"\n        },\n        {\n            \"id\": \"E\",\n            \"issue\": \"missing-speech\"\n        },\n        {\n            \"id\": \"F\",\n            \"issue\": \"unknown\"\n        }\n    ]\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"Text exists for the host but at the wrong time. The last cue cannot be verified against the recording.\n"}],"is_active":true,"is_approved":false}]}]}