how do i enable LiveKit Google TTS plugin doesn't ...
# ask-ai
j
how do i enable LiveKit Google TTS plugin doesn't appear to have built-in SSML for the agent? give me the exact steps to get custom pronounciation
t
Thanks for reaching out, Tyler. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! To get the LiveKit Google TTS plugin up and running with SSML for custom pronunciation, just follow these simple steps: 1. First, install the plugin by running:
pip install "livekit-agents[google]~=1.0"
2. Next, initialize Google TTS with SSML enabled using this code:
Copy code
from livekit.plugins import google

tts = google.TTS(
    enable_ssml=True,
    use_streaming=False  # SSML doesn’t work with streaming
)
Just a heads up: SSML isn’t supported when streaming is on, so make sure streaming is turned off to avoid any errors. If you want a hand with the SSML syntax for custom pronunciation or anything else, feel free to ask—I’m here to help! Sources: Google Cloud TTS integration guide | LiveKit Docs | livekit-plugins/livekit-plugins-elevenlabs/livekit/plugins/elevenlabs/tts.p...