Skip to main content

Multilingual Subtitle Translator

Translate SRT/VTT subtitle files to any language while preserving timestamps and formatting.

Problem Statement

Who: Video localization teams, content creators, streaming platforms
Why: Manual subtitle translation is slow and expensive. Automated translation with timestamp preservation speeds up localization.

What You’ll Build

A recipe that reads subtitle files, translates the text while preserving timing, and outputs properly formatted subtitle files.

Input/Output Contract

Prerequisites

Step-by-Step Build

1

Create Recipe Directory

2

Create TEMPLATE.yaml

3

Create recipe.py

4

Create test_recipe.py

Run Locally

Deploy & Integrate: 6 Integration Models

Deployment note: Best for Python video processing pipelines.

Troubleshooting

Ensure preserve_timestamps: true (default). If timing needs adjustment for translated text length, consider post-processing.
The recipe uses UTF-8 encoding. Ensure your source file is UTF-8 encoded.

Next Steps