Skip to content

Add CAMB AI as a TTS platform option#5

Open
neilruaro-camb wants to merge 1 commit intopanyanyany:masterfrom
neilruaro-camb:feat/camb-ai-tts
Open

Add CAMB AI as a TTS platform option#5
neilruaro-camb wants to merge 1 commit intopanyanyany:masterfrom
neilruaro-camb:feat/camb-ai-tts

Conversation

@neilruaro-camb
Copy link
Copy Markdown

Summary

Hi there! We're the team at CAMB AI, a localization engine trusted by brands like the Premier League, the NBA, NASCAR, and the Australian Open. We'd love to be included as a TTS option in Twocast.

This PR adds CAMB AI as a new text-to-speech platform, including:

  • New CambAI platform enum and TTS generation via the CAMB AI streaming API
  • Voice listing endpoint with caching (24h in Redis)
  • Platform selector, default voices, and concurrency configuration
  • Loading state for voice dropdowns while voices are being fetched
  • Graceful error handling for all voice provider API calls (prevents one failing provider from breaking the entire /api/voices response)

Configuration

Users can enable CAMB AI by setting these environment variables:

CAMBAI_ENABLED=1
CAMBAI_API_KEY=your-api-key
CAMBAI_SPEECH_MODEL=mars-flash
CAMBAI_LANGUAGE=en-us

Test plan

  • Enable CAMB AI via env vars
  • Select "CAMB AI" from the platform dropdown
  • Verify voices load in Voice 1 / Voice 2 selectors
  • Create a podcast and verify audio generation works end-to-end

Add CAMB AI text-to-speech integration including:
- CambAI platform enum and TTS generation via streaming API
- Voice listing endpoint with 24h Redis caching
- Platform selector, default voices, and concurrency config
- Loading state for voice dropdowns while fetching
- Graceful error handling for all voice provider API calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant