Accessibility
Subtitles
Overview
The subtitles task generates subtitle tracks from video or audio files using AI-powered speech recognition.
Subtitles are output as WebVTT (.vtt) or SRT (.srt) files that can be used directly in video players.
Creating a subtitles task
Options
| Option | Type | Description |
|---|---|---|
format | string | Output format: vtt (default) or srt |
label | string | A label for the subtitle track (e.g. "English") |
Output
When the task succeeds, the output is a subtitle file (VTT or SRT) accessible via the outputs array:
Supported inputs
- Audio files:
.mp3,.m4a,.wav,.ogg,.aac,.flac - Video files with audio:
.mp4,.mov,.webm
Common use cases
- Adding captions to videos for accessibility
- Multi-language subtitle generation
- Making video content searchable by transcript
- Compliance with accessibility requirements