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.

OperationInputCreditsResult files
audio.dubMP3, WAV, M4A, AAC, FLAC, OGG, OPUS, WEBM or AIFF, up to 100 MB80 credits per minuteaudio

Input

uploadIdstringrequired

Upload of the speech audio to dub.

targetLanguagestringrequired

Language to dub into, as an ISO 639-1 code or a language name.

sourceLanguagestringoptionaldefault: auto

Spoken language of the source, or auto.

numSpeakersintegeroptionaldefault: 0

Number of speakers, 0 to 32. 0 detects it automatically.

dropBackgroundAudiobooleanoptionaldefault: false

Remove 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": "..."
        }
      ]
    }
  }
}