Translate captions and dub
text_localizeTranslate a transcript into many languages with cue-accurate captions, and optionally dubbed audio.
5 credits per language-minute (250 with dub: true).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"targetLanguages": "<targetLanguages>",
"projectId": "<projectId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "text_localize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dub | No | Also synthesize dubbed audio. Defaults to false; dubbing costs more than captions. | |
| model | No | Provider-specific approved model. Set provider whenever model is supplied. | |
| assetId | No | Translate a transcript this workspace has already had transcribed instead of sending one. Send exactly one of `transcript` or `assetId`. Asset ids come from `GET /v1/assets` (an asset is usable once `transcriptReady` is true). An asset in another workspace is reported as not found. | |
| context | No | Translation context such as product names, preferred terminology, and phrases that must not be translated. | |
| voiceId | No | Provider-specific narration voice id used only when `dub` is true. Omit to use the deployment default; the public API has no universal cross-provider voice list. | |
| provider | No | Premium dubbing provider. English dubs default to Speechify Simba 3.5. Non-English dubs require an explicit compatible provider; providers are never auto-switched. | |
| projectId | Yes | The project to file this work under. Required — create one with the `projects_create` tool. A project this workspace does not own answers `not_found`; the work is never silently filed somewhere else. | |
| workspace | No | Workspace slug. Omit to use the workspace your credential is bound to. An API key names its own workspace, and a value that disagrees with it is refused rather than ignored. | |
| transcript | No | The transcript to translate. Send exactly one of `transcript` or `assetId`. | |
| captionFormat | No | Caption file format. Omit to use the service default. | |
| idempotencyKey | Yes | Required for anything that spends or creates durable state. Generate a unique id per logical call. Retrying with the SAME id and the SAME arguments returns the stored result instead of doing — and charging for — the work twice; the same id with different arguments is refused with `conflict`. | |
| sourceLanguage | No | Source language. Required with `assetId` when no language was recorded for that asset — there is no default, because guessing would mis-translate a non-English asset silently. | |
| targetLanguages | Yes | One to 20 BCP 47 language tags to produce, e.g. `["es", "sw"]`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||