- Uploading a new asset
Upload an asset video file directly to Panjaya Dubbing Studio.
This endpoint allows you to upload a video file directly, saving the need to upload to an external storage service. It accepts the same parameters as the Create Asset endpoint, except for the media_url parameter, which is replaced by the video file input.
Note that this endpoint is structured as a multipart/form-data request, where the request form field contains a JSON-serialized object with the asset parameters, and the video form field contains the video file to be uploaded.
You may additionally provide a background file to upload a clean background audio track. Refer to Background Audio section under create asset endpoint.
A JSON object that accepts the same configuration as creating an asset (except for the media_url field).
{ "languages": [ { … } ], "locale": "en-US", "name": "My Asset" }
Optional background audio file to upload. Maximum size is 500MB.
- https://api.panjaya.aihttps://api.panjaya.ai/v1/assets/upload
{
"request": {
"languages": [
{
"locale": "es-ES"
}
],
"locale": "en-US",
"name": "My Asset"
},
"video": "string"
}Asset was created successfully
A locale code of a supported locale. If the locale is not supported, an error response of status 400 will be returned.
Duration of the source video in seconds. The field may be null while the asset is processing.
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.
The uploaded video before dubbing
A poster/thumbnail image for the asset, suitable for link previews. May be null while the asset is processing.
{ "asset_id": "7b9b9e3c3c7e322aec4c3d9b", "name": "My Asset", "locale": "en-US", "created_at": "2021-08-10T12:00:00Z", "status": "Dubbing", "languages": [ { … } ] }