Dub a video or audio file
dub_mediaUploads a local file (an absolute path) or a public https link, and starts one dub per target language. Returns as soon as the dubs have started; dubbing takes minutes. Then call wait_for_dub or get_dub.
Instructions
Uploads a local file (an absolute path) or a public https link, and starts one dub per target language. Returns as soon as the dubs have started; dubbing takes minutes. Then call wait_for_dub or get_dub. Languages the plan can't dub into come back under refused with a reason. Live keys use plan minutes, so confirm the languages with the person first. Test keys dub only video files, and only the first 60 seconds.
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": {
"source": "<source>",
"source_language": "<source_language>",
"target_languages": "<target_languages>"
},
"name": "dub_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | An absolute path to a local video or audio file, or a public https:// link to one. | |
| metadata | No | Your own labels, returned on the dub and in webhooks. | |
| instructions | No | Notes for the dub, such as names to keep as they are, the tone, or how to address the audience. Followed on paid plans. | |
| num_speakers | No | How many people speak, if known. Leave out to detect it. | |
| voice_cloning | No | Keep each speaker's own voice. Leave out for the account's default. | |
| source_language | Yes | The language spoken in the original, as a code such as en, fr or yo. | |
| target_languages | Yes | Codes from list_languages, such as ["fr-FR", "es-ES"]. |