Skip to main content

Scenario

Take Mavera-generated scripts and use ElevenLabs’ dubbing API to create localized versions in multiple languages, supporting global marketing campaigns without manual translation. Flow: Mavera POST /generations (English script) → ElevenLabs TTS → POST /v1/dubbing → Poll → Download per language

Code

Example Output

Error Handling

ElevenLabs supports 29+ languages. Check supported languages before submitting. Unsupported codes return 400. Common: es, fr, de, ja, pt, zh, ko.
Processing scales with audio length — 45 seconds typically completes in 30–60s. Content over 5 minutes can take several minutes. If polling times out, check status manually.
Dubbing works best with clean, single-speaker audio at 44.1kHz+. Background music or multiple speakers degrade output. Pre-process noisy audio before submitting.