1. Add Translate to your workflow
The API can change a Translate node’s settings on every request, but it cannot add the node. Add it once in the Overlap portal:- Open portal.overlap.ai, go to Workflows, and open the workflow you trigger through the API.
-
Add a Translate node and connect it after your styling nodes, as the last editing step before any export or posting nodes. For example:
-
In the Translate node, set:
- Dubbing level: Subtitles only translates the captions and keeps the original audio. Subtitles + Voice also replaces the audio with a dubbed voice.
- Target language: the language clips are delivered in by default, for example Spanish. A request can change it (step 2).
-
Save the workflow. Its
workflowIddoes not change.
What comes out in the target language
2. Trigger the workflow
Trigger it withPOST /trigger-template as usual. Clips come back in the language saved on the Translate node.
To choose the language or dubbing level per request, add nodeConfigs.add_languages:
add_languages is ignored and clips come back in their spoken language.
Invalid values, such as an unknown
dub_level, return INVALID_NODE_CONFIG.
More than one language
Each Translate node produces one language. For several languages per run, add one Translate node per language, each connected to the same upstream node. A request keyed byadd_languages changes only the first Translate node, so to change a specific one, key the override by its node id. GET /workflow lists each node’s id and nodeType.
3. Get the results
PollGET /workflow-results/{triggerId} as usual. Translation adds roughly one to a few minutes per clip.
Runs through Translate return only the translated clips. Each one has:
clips instead of being returned in the original language.
4. Update and render
Call/update-clip and /render with the translated clip’s id. The rendered video has the translated captions burned in, with the styling from the workflow.
Caption text of a translated clip is edited in the Overlap editor. The
clip transcript endpoints edit the original
spoken-language transcript, which does not change the translated captions.
Title overlay
Translate does not translate the title overlay. To show the overlay in the target language, send the text yourself. When the workflow uses a Title Overlay node, send the text with the trigger request:nodeConfigs.style_video.
With a Title Overlay node, you can also update titleConfig on the translated clip with /update-clip before calling /render.