Add locales to a a dubbing project (original imported video)
| Time | Status | User Agent | |
|---|---|---|---|
| Make a request to see history. |
URL Expired
The URL for this request expired after 30 days.
dubbing_project_id
uuid
required
UUID of the dubbing project (original imported video)
targetLanguages
array of objects
required
The languages to dub the source media asset to.
Targetlanguages*
Show 149 enum values
ADD string
lipsyncEnabled
boolean
Defaults to false
Whether to enable lipsync for the dubbed video.
truefalse
videoDuration
string
enum
Defaults to adaptive
The duration of the video to create.
adaptiveoriginal
Allowed:
adaptive``original
visibility
string
enum
Defaults to private
The visibility of the dubbed video.
privatepublic
Allowed:
private``public
``202 Successfully scheduled dubbing for provided locales.
object
dubbedErrors
array of objects
Dubbederrors
object
error
string | null
Defaults to null
The error type.
language
string | null
Defaults to null
The language of the error.
createdDubbedAssets
array
required
Createddubbedassets*
_DubbedAssetInProgress
_DubbedAssetComplete
_DubbedAssetError
``204
All requested locales were already added.
``400 Bad Request. Invalid imported video or locales.
``403 Forbidden - Wrong API key.
``404 Not Found - Imported video not found.
``default Unexpected Server error.
ShellNodeRubyPHPPython
xxxxxxxxxx
curl --request PUT \
--url https://api.synthesia.io/v2/dubbing/dubbing_project_id \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"lipsyncEnabled": false,
"videoDuration": "adaptive",
"visibility": "private"
}
'
xxxxxxxxxx
{
"dubbedErrors": [
{
"error": "string",
"language": "string"
}
],
"createdDubbedAssets": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"language": "af",
"status": "in_progress"
},
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "string",
"description": "string",
"language": "af",
"status": "complete",
"createdAt": 0,
"lastUpdatedAt": 0,
"visibility": "public",
"download": "string",
"thumbnail": {
"image": "string",
"gif": "string"
},
"captions": {
"srt": "string",
"vtt": "string"
}
},
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"language": "af",
"status": "error",
"errorCode": "moderation"
}
]
}