Skip to main content

A command-line tool that automates the translation and dubbing of YouTube videos.

Project description

VidLingua

VidLingua is a command-line tool that automates the translation and dubbing of YouTube videos. It downloads the original video, transcribes the audio, translates the text into a target language, generates a new voiceover using neural text-to-speech, and merges the new audio back into the video file.

Dependencies

  • Python 3.8+
  • FFmpeg: Must be installed and accessible in your system's PATH.

Installation

  1. Clone or download this repository.
  2. Navigate to the VidLingua directory.
  3. Install the package using pip:
pip install -e .

Usage

Vidlingua run --yt-url <URL> --translate-to <LANG_CODE> [OPTIONS]

Options

Option Description Default
--yt-url (Required) The YouTube video URL.
--translate-to (Required) The target language code (e.g., en, hi, ml).
--destination Directory to save the final video. ~/Downloads

Examples

Translate to English and save to the default Downloads folder:

Vidlingua run --yt-url "https://youtube.com/watch?v=..." --translate-to "en"

Translate to Hindi and save to a specific directory:

Vidlingua run --yt-url "https://youtube.com/watch?v=..." --translate-to "hi" --destination "./my_videos"

Supported Languages

VidLingua maps high-quality Neural TTS voices to the following language codes. Other language codes supported by Google Translate will fall back to a default voice.

Code Language
en English
hi Hindi
ml Malayalam
ta Tamil
kn Kannada
te Telugu

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vidlingua-0.1.0a1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vidlingua-0.1.0a1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file vidlingua-0.1.0a1.tar.gz.

File metadata

  • Download URL: vidlingua-0.1.0a1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for vidlingua-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 4faf2855e29aa02a57fe7620fb4b07e39a86ca229e24bffaed559c70619fccf1
MD5 73facea4b720721eeb9756b2a189fddf
BLAKE2b-256 8bc4c2cb347c550076131653063012aa3a3e2526560dfd774aabf72b0736a5cb

See more details on using hashes here.

File details

Details for the file vidlingua-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: vidlingua-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for vidlingua-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 1290a0994a22899839a9440d947be1915d90fe978831137c432921e373a5d57a
MD5 55502de12ec61ae48164f9a0fddcbc7e
BLAKE2b-256 da1b423a0c4137b789b1142ce6f58c0fe979b23481c94270c04d52f853c6d668

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page