jolly-apartment-95291
08/12/2025, 12:17 AMtall-airline-16756
08/12/2025, 12:17 AMtall-airline-16756
08/12/2025, 12:18 AMpip install "livekit-agents[google]~=1.0"
2. Next, initialize Google TTS with SSML enabled using this 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...