using tts fallback adapter, how can i know which t...
# ask-ai
t
using tts fallback adapter, how can i know which tts is being used rn
t
Thanks for reaching out, Joseph. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To help you figure out which TTS is being used when you’re working with the TTS fallback adapter, you can keep an eye on the logs or listen to certain events: • Logs: The adapter kindly logs messages that include the
label
of the TTS instance currently in use. For instance, you might see messages like
{tts.label} error, switching to next TTS
or
tts.FallbackAdapter, {tts.label} recovered
. • Events: Another great way is to listen for the
tts_availability_changed
event. This event gives you the
tts
instance and its availability status, so you can easily track which TTS is active or if one has become unavailable. If you’d like, I’m here to guide you through setting up event listeners or accessing the logs to make this process smoother. Just let me know! Sources: livekit-agents/livekit/agents/tts/__init__.py | Text-to-speech (TTS) models | LiveKit Docs | examples/src/basic_agent.ts