Skip to main content
Open In Colab

Overview

VideoDB makes video dubbing incredibly simple with AI-powered translation and voice synthesis. With just one function call, you can dub your videos into multiple languages while preserving the original speaking style and timing. No need for complex audio editing, timeline manipulation, or third-party tools. VideoDB’s coll.dub_video() handles everything automatically.

Prerequisites

Ensure you have VideoDB installed in your environment and an API key from VideoDB Console. The first 50 uploads are free with no credit card required!
!pip install videodb

Connect to VideoDB

Connect to VideoDB using your API key:
import videodb

# Connect to VideoDB
api_key = "your_api_key"
conn = videodb.connect(api_key=api_key)
coll = conn.get_collection()

Upload Your Video

Upload the video you want to dub. For this example, we’ll use an English video:
# Upload the original video (English)
video_url = "https://www.youtube.com/watch?v=0e3GPea1Tyg"
video = coll.upload(url=video_url)

print(f"Video uploaded: {video.id}")

Preview the Original

Python
video.play()

Dub Your Video

Here’s where the magic happens! Dub your video into any supported language with a single function call:
# Dub the video into Hindi
dubbed_video = coll.dub_video(
    video_id=video.id,
    language_code="hi"  # Hindi
)

print(f"Video dubbed successfully: {dubbed_video.id}")
That’s it! VideoDB automatically dubbed your video.

View the Dubbed Video

Generate and play your dubbed video:
Python
dubbed_video.play()

Supported Languages

VideoDB supports dubbing into many languages. Simply change the language_code parameter:
Column 1Column 2Column 3Column 4
LanguageCodeLanguageCode
SpanishesJapaneseja
FrenchfrKoreanko
GermandeChinese (Simplified)zh
ItalianitArabicar
PortugueseptRussianru
Hindihi… and more!

Example: Dub into Spanish

Python
# Dub the same video into Spanish
spanish_dubbed = coll.dub_video(
    video_id=video.id,
    language_code="es"  # Spanish
)

print(f"Spanish version created: {spanish_dubbed.id}")

# Play the Spanish version
spanish_dubbed.play()

Use Cases

Content Localization

Reach global audiences by dubbing your content into multiple languages

Educational Content

Make learning materials accessible in students’ native languages

Marketing Videos

Create localized versions of promotional content

Entertainment

Dub movies, shows, or vlogs for international viewers

Accessibility

Provide dubbed versions for audiences who prefer audio in their native language

Wrap-up

With VideoDB’s coll.dub_video(), video dubbing is as simple as querying a database. No complex audio editing, no timeline manipulation - just one function call to create professional multilingual content.
Start dubbing your videos today and reach audiences worldwide!

Explore Full Notebook

Open the complete implementation in Google Colab with all code examples.