feat(media-use): add Cartesia TTS provider#2426
Open
FNDEVVE wants to merge 1 commit into
Open
Conversation
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
Add Cartesia as a fourth TTS provider in the shared media-use audio engine, mirroring the existing ElevenLabs Python SDK integration. The Cartesia integration follows the existing ElevenLabs Python SDK schema, which is why the included and excluded features align the way they do.
Provider order
The automatic selection now cascades:
HeyGen → ElevenLabs → Cartesia → Kokoro
What's included
skills/media-use/audio/scripts/lib/tts.mjspip install cartesia)sonic-3.5Cartesia-Version: 2026-03-01db6b0ed5-d5d3-463d-ae85-518a07d3c2b4)pcm_s16le, 44.1 kHz)en-us→en, etc.)generation_config.speedwords: null; existing Whisper transcription path provides captionspackages/cli/src/audio/providers.ts(Cartesia third, no schema changes)skills-manifest.jsonnpx hyperframes ttsKokoro-only andresolve --type voiceHeyGen → KokoroWhat's NOT included
npx hyperframes tts(remains Kokoro-only)resolve --type voice(remains HeyGen → Kokoro)Verification
Benchmark context: Artificial Analysis benchmark and Cartesia launch. This is not a Cartesia advertisement, but the voice quality is good and the free plan provides approximately 24 minutes of free voice-over per month.
video.mp4