ThioJoe/Auto-Synced-Translated-Dubs
Python batch CLI for cloud dubbing aligned to SRT timecodes.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This is a configuration-driven Python batch CLI, not a transcription engine or a realtime service. main.py takes video and timed SRT paths from batch.ini and processes the enabled target languages in sequence. It translates subtitle text, derives a target duration from each cue, requests neural TTS, fits the resulting clips to their slots, and assembles the track by placing clips at their cue offsets. The source video supplies the overall track length; the SRT supplies the speech timing.
Cloud APIs handle language processing, while the host handles probing, audio processing, and assembly. The manifest includes google-cloud-texttospeech, azure-cognitiveservices-speech, deepl, and aiohttp alongside pydub, soundfile, ffprobe-python, and pyrubberband; ffmpeg is a separate prerequisite. Integration centers on INI configuration, media files, and external provider APIs rather than a documented inbound API or plugin interface.
Key Capabilities & Differentiators
Translation can use Google Translate or DeepL, or be skipped when subtitles are already in the target language. TTS providers are Google Cloud, Microsoft Azure, and ElevenLabs; language and voice choices are set per target. Do-not-translate lists, manual translations, and phoneme rules give editors control over terminology and pronunciation. Each run writes translated SRTs and dubbed audio to output.
The timing path can measure an initial clip and use the result to set the speaking rate on a second synthesis pass, or fit duration by time stretching. Azure accepts a target duration before synthesis, so it does not need that measurement-and-resynthesis step. The separate TrackAdder.py can package generated tracks into MP4 and optionally mix an effects track into each language version. This aligns speech to subtitle boundaries; it does not align phonemes to mouth movements.
Trade-offs & Limitations
Compared with placing synthesized clips by hand in a video editor, this CLI makes repeated multilingual runs easier to reproduce and preserves direct control over timing inputs and terminology. Compared with a managed dubbing suite, it shifts transcription, subtitle cleanup, and final review to the operator. The pipeline assumes one speaker; separate SRTs can be dubbed with different voices and combined afterward, but that is a manual workaround rather than speaker detection.
The main quality constraint is the amount of translated speech that must fit each cue. Tight slots or SRTs with no gaps can produce rushed delivery or erase natural pauses. A second synthesis pass can sound better than heavy stretching, but synthesizing every clip twice doubles the synthesis charges for those clips when billed per synthesis. Test a representative segment before processing all languages, especially when subtitles are dense or terminology needs review.
Hardware & Deployment Guide
Start with a Python environment; Python 3.9 is the version used to build the project, not a verified minimum. Install requirements.txt and make ffmpeg available. Set the relevant cloud credentials in cloud_service_settings.ini, choose translation, synthesis, and output settings in config.ini, and supply the video, SRT, language, and voice entries in batch.ini. Then run python main.py. Rubber Band binaries are optional if you choose that stretching backend.
The CLI can run on your own host, but synthesis and any enabled translation still require network access to the chosen providers. Skipping translation removes that provider call, not the TTS dependency. There is no stated GPU requirement for this architecture; plan for local media processing and intermediate files, plus provider quotas and costs. Release v0.21.0 (January 28, 2025) updated Azure Batch TTS calls, guarded against division by zero in speech-rate calculation, and added force_always_stretch.
batch.ini selects multiple target languages and their voices for sequential processing.TrackAdder.py adds language tracks to MP4 with ffmpeg and can mix a separate effects track into each.Creators and localization teams with clean, timed SRTs who need repeatable multilingual audio and subtitles for prerecorded, mostly single-speaker videos.
You need live or offline dubbing, automatic transcription and speaker assignment, or phoneme-level lip sync.
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Auto-Synced-Translated-Dubs ★ | 1.8k | +1 | Python | AGPL-3.0 | Python batch CLI for cloud dubbing aligned to SRT timecodes. |
| voice-pro | 13.5k | +34 | Python | GPL-3.0 | Self-hosted Gradio studio for transcription, translation, and dubbing |
| WhisperLiveKit | 11.3k | +27 | Python | Apache-2.0 | Self-hosted streaming speech-to-text with pluggable ASR and speaker diarization |
| EmotiVoice | 8.5k | — | Python | Apache-2.0 | Self-hosted PyTorch TTS for prompt-controlled Chinese and English speech |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ThioJoe/Auto-Synced-Translated-Dubs.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Auto-Synced-Translated-Dubs
How do I integrate it into an existing media pipeline?
batch.ini, and run python main.py. Downstream jobs can consume the translated SRTs and dubbed audio from output; TrackAdder.py is a separate MP4 packaging step. The APIs in this workflow are provider integrations, not an application server for submitting dubbing jobs.Does the dubbing host need a GPU, and what drives resource usage?
Can a business run it internally or wrap it in a hosted service?
When is it a better choice than manual editing or a managed dubbing suite?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy