millions-byte-98943
10/24/2025, 8:46 PMself._tts . It kinda works. But TTS metrics are no longer emitted.
Unfortunately I can't find a way to decide the TTS before instantiating the Agent(). For context, I am building a telephony AI agent. I need to make an API call with the agent's phone number to get the TTS to use. I cannot get the agent phone number from room.local_participant before connecting to the room. I need to instantiate the Agent() to connect to the room using session.start() . Kinda a chicken & egg problem.
Hence I am looking for ways to change TTS plugin of the instanciated Agent during runtime.proud-lawyer-39815
10/24/2025, 9:13 PMproud-lawyer-39815
10/24/2025, 9:14 PMmillions-byte-98943
10/24/2025, 9:24 PMproud-lawyer-39815
10/24/2025, 9:53 PMmillions-byte-98943
10/25/2025, 7:24 PMupdate_agent() to set the correct agent. Thanks @proud-lawyer-39815 for the idea!