Open
Conversation
Adds CambAITTSService with streaming TTS, voice mapping, and translated TTS support. Integrates as a third TTS option with full config and 10 unit tests.
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
CambAITTSServiceclass inserver/services/cambai_tts.pyfollowing the Edge TTS service patternUSE_CAMBAI_TTS=truein config (priority: CAMB AI > OpenAI > Edge TTS)CAMBAI_VOICE_MAPJSON config for role-to-voice-ID assignmentMUTABLE_CONFIGSfor runtime admin updatesserver/tests/test_cambai_tts.pyAbout CAMB AI
CAMB AI is a voice AI and localization platform trusted by brands like the Premier League, the NBA, NASCAR, and the Australian Open. We offer low-latency streaming TTS (~150ms with mars-flash), voice cloning, and translated TTS in 50+ languages, which is a natural fit for a language-learning podcast app like lingopod.
We'd love to be included as a TTS option. Happy to iterate on any feedback!
Test plan
python -m pytest server/tests/test_cambai_tts.py -v --noconftestUSE_CAMBAI_TTS=trueandCAMBAI_API_KEYin.env