Skip to main content
Case: Automatically Creating Voiceover for Silent Footage of the Underwater World
Open In Colab

Overview

Voiceovers are the secret sauce that turns silent footage into captivating stories. They add depth, emotion, and excitement, elevating the viewing experience. Traditionally, this workflow required stitching together multiple tools: one for script writing (LLM), one for voice generation (TTS), and another for video editing. VideoDB simplifies this by bringing everything under one roof. In this tutorial, we will:
  1. Upload a silent video.
  2. Analyze the video to understand its visual content.
  3. Generate a narration script using VideoDB’s text generation.
  4. Generate a professional AI voiceover using VideoDB’s voice generation.
  5. Merge them instantly into a final video.

Setup

Installing VideoDB

API Keys

You only need your VideoDB API Key. Get your API key from VideoDB Console. Free for first 50 uploads, no credit card required.

Implementation

Step 1: Connect to VideoDB

Connect to VideoDB using your API key to establish a session.

Step 2: Upload Video

We’ll upload the silent underwater footage directly from YouTube.

Step 3: Analyze Visuals

We need to know what is happening in the video to write a script for it. We’ll use index_scenes() to analyze the visual content.
Let’s view the description of first scene from the video
Output:

Step 4: Generate Script

Now, we use VideoDB’s generate_text method to write a voiceover script based on the scene descriptions we just retrieved.

Step 5: Generate Voiceover Audio

We can now turn that text into speech using generate_voice. This returns an Audio object directly, so we don’t need to save or upload files manually.

Step 6: Compose the Video

We have the video and the generated voiceover. Now we merge them using the Timeline Editor.

Step 7: Review and Share

Generate the final stream URL and watch your AI-narrated video!
Output:

Conclusion

Congratulations! You have successfully automated the process of creating custom and personalized voiceovers based on a simple prompt and raw video footage using VideoDB. By leveraging advanced AI technologies, you can enhance the storytelling and immersive experience of your video content. Experiment with different prompts and scene analysis techniques to further improve the quality and accuracy of the voiceovers. Enjoy creating captivating narratives with AI-powered voiceovers using VideoDB!

Explore Full Notebook

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

Video Dubbing

Dub videos into multiple languages with AI voice synthesis

Faceless Video Creator

Build complete faceless videos with AI scripts, voiceovers, and multi-layer composition