is there anyway i can set ssml?
# ask-ai
c
is there anyway i can set ssml?
t
Thanks for reaching out, Hai. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely, you can set SSML (Speech Synthesis Markup Language) in LiveKit through its Text-to-Speech (TTS) integrations. The way you configure it depends on the TTS provider you're working with: • Amazon Polly: Just set the
text_type
parameter to
"ssml"
to enable SSML parsing. • ElevenLabs: Use the
enable_ssml_parsing=True
parameter in your configuration. • Google Cloud TTS: You can enable SSML with the
enable_ssml=True
parameter, but keep in mind that SSML isn’t supported in streaming mode. • Azure AI Speech: You’ll want to build SSML programmatically using the
_build_ssml()
method, wrapping your content in the right SSML tags like
<speak>
and
<voice>
. If you'd like, I’m here to help with specific examples or to guide you through any of these providers—just let me know! Sources: ElevenLabs integration guide | LiveKit Docs | ElevenLabs TTS integration guide | LiveKit Docs | Agent speech and audio | LiveKit Docs | Agent speech and audio | LiveKit Docs | Amazon Polly TTS integration guide | LiveKit Docs