jianchang512/pyvideotrans
Translate the video from one language to another and embed dubbing & subtitles.
What it solves
Videos are hard to understand across languages. This tool automates the whole process of translating a video's speech and subtitles into another language, including re-dubbing the audio so the video feels native. It also handles plain audio transcription and subtitle generation.
How it works
It runs a pipeline: first, speech recognition (ASR) transcribes the audio into text with timestamps. Then, that text is translated using either local offline models or online APIs (like DeepSeek, ChatGPT, etc.). After translation, speech synthesis (TTS) generates new audio in the target language, often matching different speakers with different voices (multi-role dubbing). Finally, the new audio and subtitles are re-synced with the video. You can pause and manually correct any step. It also includes extra tools like voice cloning and audio/video merging.
Who it’s for
Video creators, translators, content localizers, and developers who need to translate or dub videos, or generate subtitles. It works for individuals and businesses, and can run locally or on a server via its command-line or web interface.
Highlights
- Fully automatic one-click video translation: ASR → subtitle translation → TTS → video synthesis.
- Audio transcription with speaker diarization to distinguish different roles.
- Multi-role AI dubbing: assign different voices to different speakers.
- Voice cloning with models like F5-TTS, CosyVoice, GPT-SoVITS.
- Supports many ASR, translation LLMs, and TTS engines (local and online).
- Interactive editing at every stage to ensure accuracy.
- Extra tools: vocal separation, subtitle merging, audio-video alignment.
- Runs as a desktop GUI, command-line tool, or web interface.
Related
- Project
- Project
- Project
- Project
- Project