The ElevenLabs Video Dubbing Application is a user-friendly interface for dubbing videos using the ElevenLabs API. This application allows users to upload video files or provide URLs to videos (from platforms like YouTube, TikTok, Twitter, or Vimeo) and dub them into various languages. The application uses Gradio to provide an easy-to-use web interface.
Key features:
Clone this repository or download the dub.py
file.
Install the required Python packages:
pip install elevenlabs gradio python-dotenv
Create a .env
file in the same directory as dub.py
and add your ElevenLabs API key:
ELEVENLABS_API_KEY=your_elevenlabs_api_key_here
Run the application:
python dub.py
Open the provided local URL in your web browser.
Choose either the "File Upload" or "URL Input" tab:
For File Upload: a. Upload a video file b. Select the source language c. Choose the target language for dubbing d. Specify an output directory (default is "output") e. Click "Dub Video File"
For URL Input: a. Enter the URL of the video b. Select the source language c. Choose the target language for dubbing d. Specify an output directory (default is "output") e. Click "Dub Video from URL"
Wait for the dubbing process to complete. You'll see progress updates in the interface.
Once completed, the application will provide the path to the dubbed video file.
The application supports dubbing between various languages, including but not limited to: English, Hindi, Portuguese, Chinese, Spanish, French, German, Japanese, Arabic, Russian, Korean, Indonesian, Italian, Dutch, Turkish, Polish, Swedish, Filipino, Malay, Romanian, Ukrainian, Greek, Czech, Danish, Finnish, Bulgarian, Croatian, Slovak, and Tamil.