I'm using Cartesia for TTS (sonic-2 model). Does C...
# agents
f
I'm using Cartesia for TTS (sonic-2 model). Does Cartesia support SSML? The docs here say they do, but I haven't been able to make it work. I noticed that ElvenLabs and Google TTS have the argument
enable_ssml_parsing
, which Cartesia TTS doesn't. An example of what I'm trying to do is add pauses between number groups when the agent says a phone number:
Copy code
phone_replacement = f'<speak><say-as interpret-as="characters">{match.group(1)}</say-as> <break time="300ms"/> <say-as interpret-as="characters">{match.group(2)}</say-as> <break time="300ms"/> <say-as interpret-as="characters">{match.group(3)}</say-as></speak>'
Any help here?
✅ 1
r
f
I did. These docs show support for an "MFA-style IPA", which is used to pronounce words, not exactly SSML. It doesn't seem to have options for general speech synthesis like adding pauses between certain groups of words.
r
basic_agent.py
f
Thank you! This works.