Skip to content

Add languages to an existing asset

Request

With this endpoint, you can add new languages to an existing asset. Once you make the request, Panjaya will initiate a new dubbing process for each added language.

Once the process is complete, you will be notified via email and the callback URL, if configured.

Security
api_key
Path
asset_idstringrequired
Bodyapplication/jsonrequired
languagesArray of objectsrequired

List of languages to translate and dub the asset to

auto_generatestring

If specified, Panjaya will generate the result video automatically, with or without synthesized lips according to the parameter's value. If not specified, Panjaya will not generate the result video automatically.

Default:"off"
Enum:"off""with_lips""no_lips"
{ "languages": [ { … } ], "auto_generate": "off" }

Responses

Languages added successfully

Bodyapplication/json
asset_idstringrequired
namestringrequired
localestring, [ 5 .. 6 ] characters^[a-z]{2,3}-[A-Z]{2}$required

A locale code of a supported locale. If the locale is not supported, an error response of status 400 will be returned.

created_atstring, (date-time)required
statusstringrequired
Enum:"Dubbing""PendingReview""Ready""Failed"
durationnumber or nullrequired
Any of:

Duration of the source video in seconds. The field may be null while the asset is processing.

>= 0
number
errorApiAssetErrorInfo (object) or null
Any of:

In case of an error while processing the asset, the asset status will be Failed, and this field contains helpful information for identifying the issue.

source_video_urlstring or null
Any of:

The uploaded video before dubbing

[ 1 .. 2083 ] characters
string (uri)
thumbnail_urlstring or null
Any of:

A poster/thumbnail image for the asset, suitable for link previews. May be null while the asset is processing.

[ 1 .. 2083 ] characters
string (uri)
languagesArray of objectsrequired
Response
{ "asset_id": "7b9b9e3c3c7e322aec4c3d9b", "name": "My Asset", "locale": "en-US", "created_at": "2021-08-10T12:00:00Z", "status": "Dubbing", "duration": 123.45, "languages": [ { … }, { … } ] }