Skip to content
videodb
VideoDB Documentation
  • Pages
    • Welcome to VideoDB Docs
    • Quick Start Guide
      • Video Indexing Guide
      • Semantic Search
      • Collections
      • Public Collections
      • Callback Details
      • Ref: Subtitle Styles
      • Language Support
      • Guide: Subtitles
      • How Accurate is Your Search?
    • Visual Search and Indexing
      • Scene Extraction Algorithms
      • Custom Annotations
      • Scene-Level Metadata: Smarter Video Search & Retrieval
      • Advanced Visual Search Pipelines
      • Playground for Scene Extractions
      • Deep Dive into Prompt Engineering : Mastering Visual Indexing
      • How VideoDB Solves Complex Visual Analysis Tasks
      • Multimodal Search: Quickstart
      • Conference Slide Scraper with VideoDB
    • Examples and Tutorials
      • icon picker
        Dubbing - Replace Soundtrack with New Audio
      • VideoDB: Adding AI Generated voiceovers to silent footage
      • Beep curse words in real-time
      • Remove Unwanted Content from videos
      • Instant Clips of Your Favorite Characters
      • Insert Dynamic Ads in real-time
      • Adding Brand Elements with VideoDB
      • Elevating Trailers with Automated Narration
      • Add Intro/Outro to Videos
      • Audio overlay + Video + Timeline
      • Building Dynamic Video Streams with VideoDB: Integrating Custom Data and APIs
      • AI Generated Ad Films for Product Videography
      • Fun with Keyword Search
      • Overlay a Word-Counter on Video Stream
      • Generate Automated Video Outputs with Text Prompts | VideoDB
      • VideoDB x TwelveLabs: Real-Time Video Understanding
      • Multimodal Search
      • How I Built a CRM-integrated Sales Assistant Agent in 1 Hour
      • Make Your Video Sound Studio Quality with Voice Cloning
      • Automated Traffic Violation Reporter
    • Live Video→ Instant Action
    • Generative Media Quickstart
      • Generative Media Pricing
    • Video Editing Automation
      • Fit & Position: Aspect Ratio Control
      • Trimming vs Timing: Two Independent Timelines
      • Advanced Clip Control: The Composition Layer
      • Caption & Subtitles: Auto-Generated Speech Synchronization
      • Notebooks
    • Transcoding Quickstart
    • director-light
      Director - Video Agent Framework
      • Agent Creation Playbook
      • Setup Director Locally
    • Workflows and Integrations
      • zapier
        Zapier Integration
        • Auto-Dub Videos & Save to Google Drive
        • Create & Add Intelligent Video Highlights to Notion
        • Create GenAI Video Engine - Notion Ideas to Youtube
        • Automatically Detect Profanity in Videos with AI - Update on Slack
        • Generate and Store YouTube Video Summaries in Notion
        • Automate Subtitle Generation for Video Libraries
        • Solve customers queries with Video Answers
      • n8n
        N8N Workflows
        • AI-Powered Meeting Intelligence: Recording to Insights Automation
        • AI Powered Dubbing Workflow for Video Content
        • Automate Subtitle Generation for Video Libraries
        • Automate Interview Evaluations with AI
        • Turn Meeting Recordings into Actionable Summaries
        • Auto-Sync Sales Calls to HubSpot CRM with AI
        • Instant Notion Summaries for Your Youtube Playlist
    • Meeting Recording SDK
    • github
      Open Source
      • llama
        LlamaIndex VideoDB Retriever
      • PromptClip: Use Power of LLM to Create Clips
      • StreamRAG: Connect ChatGPT to VideoDB
    • mcp
      VideoDB MCP Server
    • videodb
      Give your AI, Eyes and Ears
      • Building Infrastructure that “Sees” and “Edits”
      • Agents with Video Experience
      • From MP3/MP4 to the Future with VideoDB
      • Dynamic Video Streams
      • Why do we need a Video Database Now?
      • What's a Video Database ?
      • Enhancing AI-Driven Multimedia Applications
      • Beyond Traditional Video Infrastructure
    • Customer Love
    • Join us
      • videodb
        Internship: Build the Future of AI-Powered Video Infrastructure
      • Ashutosh Trivedi
        • Playlists
        • Talks - Solving Logical Puzzles with Natural Language Processing - PyCon India 2015
      • Ashish
      • Shivani Desai
      • Gaurav Tyagi
      • Rohit Garg
      • Edge of Knowledge
        • Language Models to World Models: The Next Frontier in AI
        • Society of Machines
          • Society of Machines
          • Autonomy - Do we have the choice?
          • Emergence - An Intelligence of the collective
        • Building Intelligent Machines
          • Part 1 - Define Intelligence
          • Part 2 - Observe and Respond
          • Part 3 - Training a Model
      • Updates
        • VideoDB Acquires Devzery: Expanding Our AI Infra Stack with Developer-First Testing Automation

Dubbing - Replace Soundtrack with New Audio

🎬 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:
!pip install videodb
You’ll also need a VideoDB API key, which can be obtained from the . (Free for first 50 uploads, no credit card required! 🎉)

🌐 Connect to VideoDB

Connect to VideoDB using your API key:
import videodb
import os
from getpass import getpass

# Prompt user for API key securely
api_key = getpass("Please enter your VideoDB API Key: ")
os.environ["VIDEO_DB_API_KEY"] = api_key

conn = videodb.connect()
coll = conn.get_collection()

print("✅ Connected to VideoDB")

📺 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

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.

▶️ View the Dubbed Video

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

🌍 Supported Languages

VideoDB supports dubbing into many languages. Simply change the language_code parameter:
Language
Code
Language
Code
Spanish
es
Japanese
ja
French
fr
Korean
ko
German
de
Chinese (Simplified)
zh
Italian
it
Arabic
ar
Portuguese
pt
Russian
ru
Hindi
hi
… and more!

There are no rows in this table

Example: Dub into Spanish

# 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! 🌍✨

 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.