a11y-toolkit: WebVTT caption quality
a11y_vtt_checkValidate a WebVTT caption file from a URL for malformed timing, empty cues, overlaps, excessive reading speed, and media-duration coverage; returns JSON findings.
Instructions
WebVTT caption QUALITY (1.2.2) — the substance, not the presence. Everyone stops at " exists"; this downloads and parses the actual .vtt and judges what viewers get: malformed timing lines, empty cues, overlaps, impossible reading speed (>21 chars/second, BBC/Netflix standard) and coverage vs the media duration when given. Pass the .vtt URL (same http/https guard as the audits). Not a substitute for human review of accuracy or speaker identification. Returns JSON: {mode: "vtt", cues, characters, captioned_seconds, findings [{criterion, severity, signal, issue, remediation}], summary, limits}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the .vtt caption file | |
| lang | No | output language | |
| duration | No | media duration in seconds — enables the coverage check (1.2.2 completeness) |