Content Studio
Dubbing
Re-voice spoken audio in another language.
audio.dub translates the speech in an audio file and re-voices it in the target language, keeping the original speakers apart. Choose whether to keep or drop the background audio.
| Operation | Input | Credits | Result files |
|---|---|---|---|
| audio.dub | MP3, WAV, M4A, AAC, FLAC, OGG, OPUS, WEBM or AIFF, up to 100 MB | 80 credits per minute | audio |
Input
uploadIdstringrequiredUpload of the speech audio to dub.
targetLanguagestringrequiredLanguage to dub into, as an ISO 639-1 code or a language name.
sourceLanguagestringoptionaldefault: autoSpoken language of the source, or auto.
numSpeakersintegeroptionaldefault: 0Number of speakers, 0 to 32. 0 detects it automatically.
dropBackgroundAudiobooleanoptionaldefault: falseRemove music and background noise from the dubbed track.
Code Example
curl -X POST https://api.transpera.io/v1/jobs \
-H "authorization: Bearer tp_test_..." \
-H "content-type: application/json" \
-H "idempotency-key: $(uuidgen)" \
-d '{
"operation": "audio.dub",
"input": {"uploadId": "UPLOAD_ID", "targetLanguage": "es", "numSpeakers": 2}
}'Result
Result of a finished audio.dub job
{
"job": {
"id": "JOB_ID",
"operation": "audio.dub",
"status": "succeeded",
"chargedCredits": 160,
"result": {
"type": "files",
"text": null,
"files": [
{
"role": "audio",
"fileName": "es.mp3",
"url": "https://...",
"expiresAt": "..."
}
]
}
}
}