Video Dubbing API Guide
Video dubbing combines translated audio with lip-synced video so dubbed content looks natural in the target language. You can either use Sync Labs’ built-in dubbing flow with dubParams, or provide translated audio yourself and use Sync Labs for the lipsync step.
Prerequisites
- A Sync Labs API key
- A source video (URL or uploaded asset)
- For built-in dubbing: source audio in the video file
- For manual dubbing: translated audio in the target language (from a TTS service or human voice actor)
Install the SDK for your language:
Set your API key:
Built-in API Dubbing with dubParams
Use dubParams when you want Sync Labs to extract the source audio from the video, translate and dub it through ElevenLabs, then run lipsync on the dubbed result. This is the simplest path when your input video already has source audio.
When dubParams is present:
- provide a single
videoinput with audio - set
dubParams.targetLangto the target language code, such as"es","fr", or"hi" - optionally set
dubParams.sourceLang; omit it or use"auto"for automatic source-language detection - optionally set
dubParams.numSpeakers;0enables automatic speaker detection - do not include a separate audio input for the translated track; audio inputs are ignored while dubbing is enabled
Built-in dubbing is backed by ElevenLabs. If the video has no usable source audio, provide your own translated audio instead and follow the manual pipeline below.
Manual Dubbing Pipeline
Prepare your translated audio
Generate translated audio using a text-to-speech service like ElevenLabs, Google Cloud TTS, or Amazon Polly. You can also use a human voice actor. The audio must be hosted at a publicly accessible URL.
If you already have a translated audio file, upload it to your hosting service and grab the URL.
Submit to Sync Labs API
Send the source video and translated audio to the Sync Labs API. The API generates new lip movements matching the translated audio.
Poll for completion
Check the generation status until it completes. For production systems, use webhooks instead of polling.
Using the ElevenLabs Integration
Sync Labs has a built-in ElevenLabs integration that handles text-to-speech and lipsync in a single API call. Instead of generating audio separately, you pass the translated text directly.
The script field has a maximum of 5,000 characters per generation. For longer scripts, split them into segments. See the Integrations page for ElevenLabs setup details.
Supported Languages
Sync Labs’ lipsync models are language-agnostic. They work with audio in any language — the models analyze mouth shapes from the audio waveform, not the language itself. If your translated audio is clear and well-produced, the lipsync output will match.
For the built-in dubParams flow, choose one of the supported targetLang codes in the API Reference. If you need a language outside that list or want more control over translation, generate or record the translated audio separately and use the manual pipeline above.
For a complete translation pipeline walkthrough (transcription, translation, TTS, and lipsync), see the Video Translation API Guide.
Multi-Speaker Dubbing
For videos with multiple speakers, use the segments API to assign different audio tracks to different time ranges. Each segment can reference a separate audio input with a distinct voice.
See the Segments Guide for full documentation and more examples.
Performance Tips
Replace polling with webhooks for production pipelines. You receive a POST notification when the job completes, eliminating wasted API calls.
Dubbing an entire video library? The Batch API lets you submit up to 500 generations in a single operation with a 24-hour turnaround.
Use lipsync-2 for most dubbing jobs. Use sync-3 for production-quality dubbing, complex scenes, obstructions, profile angles, or 4K output. Switch to lipsync-2-pro when you need premium facial detail at a lower price point than sync-3.
Set sync_mode to control what happens when audio and video lengths differ. cut_off trims excess audio. bounce loops the video to match audio length. See Sync Mode for the full behavior matrix.
Next Steps
- Video Translation API Guide — Build a full transcription-to-lipsync pipeline
- Batch API — Process hundreds of dubbing jobs at once
- Segments Guide — Handle multi-speaker videos
- Text-to-Speech Lip Sync Guide — Combine TTS with lipsync

