localize_subtitles
Localize subtitles by translating an SRT/ITT file or transcribing a video, then generate localized .srt files for each target language, with optional glossary and formality controls.
Instructions
Localize subtitles in-memory. Provide an SRT/ITT and/or a video (STT).
Args: target_language_codes: Comma-separated codes (e.g. "fr,de,ja"). subtitle_path: Optional local subtitle file. video_path: Optional video used when no subtitle file is given. glossary_path: Optional glossary text file. source_language_code: Source language code. context: Optional localization context. formality: Optional formality override. output_dir: If set, write one .srt per language there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | ||
| formality | No | ||
| output_dir | No | ||
| video_path | No | ||
| glossary_path | No | ||
| subtitle_path | No | ||
| source_language_code | No | en | |
| target_language_codes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |