feat: add CAMB AI as TTS engine with voice cloning & audio separation#7
Open
neilruaro-camb wants to merge 1 commit into
Open
feat: add CAMB AI as TTS engine with voice cloning & audio separation#7neilruaro-camb wants to merge 1 commit into
neilruaro-camb wants to merge 1 commit into
Conversation
- Add pluggable TTSProvider abstraction (Edge TTS + CAMB AI) - CAMB AI TTS with MARS-Flash, MARS-Pro, MARS-Instruct models - Voice cloning from original speaker audio (auto 20s sample extraction) - Audio separation via CAMB AI to preserve background music - Activate the dubbing pipeline (synthesize + fit_audio + concat + render) - New CLI flags: --tts-engine, --camb-model, --voice-clone, --voice-id, --separate-audio - Fix faster-whisper MPS compatibility (fallback to CPU) - Graceful subtitle handling when FFmpeg lacks libass - Fully backward compatible: subtitle-only mode unchanged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hey! We're the team at CAMB AI — we build the localization engine behind the Premier League, NASCAR, the NBA, and other major sports organizations for multilingual audio/video content.
We love what you've built with youtube-auto-dub and would love to be integrated as one of the TTS options. This PR adds CAMB AI as an optional, high-quality TTS backend alongside the existing Edge TTS support.
What's included
TTSProviderinterface so users can choose between Edge TTS (free) and CAMB AIEngine.synthesize()andmedia.fit_audio()code was never called; this PR wires it up end-to-endNew CLI flags
--tts-engine {edge,camb}--camb-model {mars-flash,mars-pro,mars-instruct}--voice-clone--voice-id <int>--separate-audioBackward compatible
CAMB_API_KEYenv var)Tested with
Test plan
python main.py "URL" --lang es(subtitle-only, regression test)python main.py "URL" --lang es --tts-engine edge(Edge TTS dubbing)python main.py "URL" --lang es --tts-engine camb(CAMB AI dubbing)python main.py "URL" --lang es --tts-engine camb --voice-clone(voice cloning)python main.py "URL" --lang es --tts-engine camb --separate-audio(audio separation)