This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.
What is the recommended way to switch TTS of an agent during runtime?
I’m building a telephony AI agent and need to make an API call with the agent’s phone number to get the TTS to use. I can’t get the agent phone number from room.local_participant before connecting to the room, and I need to instantiate the Agent to connect using session.start().
It’s a chicken-and-egg problem. How can I change the TTS plugin during runtime?