strong-waitress-91852
10/29/2025, 2:51 PMtall-airline-16756
10/29/2025, 2:51 PMtall-airline-16756
10/29/2025, 2:52 PMstrong-waitress-91852
10/29/2025, 3:15 PMtall-airline-16756
10/29/2025, 3:16 PMAttributeError: 'NotGiven' object has no attribute 'update_options' is happening because the self.tts object hasn’t been properly set up yet and is still holding the NOT_GIVEN sentinel value instead of a valid TTS instance. This usually means the TTS configuration might be incomplete or hasn’t been initialized correctly.
Here’s a friendly guide to help you resolve this:
1. Make sure the TTS object is correctly created before you try to call update_options. For example:
from livekit.plugins.google import TTS
self.tts = TTS(voice_name="en-US-Wavenet-A")
1. Before calling update_options, check if self.tts is valid by using the is_given() utility like this:
from livekit.agents.utils import is_given
if is_given(self.tts):
self.tts.update_options(voice=voice_params)
else:
raise ValueError("TTS instance is not configured")
1. Take a moment to review how your agent or session is initialized to ensure the TTS plugin is properly injected and not left as NOT_GIVEN.
If you’d like, I’m here to help you debug further or walk you through setting up the TTS instance. Just let me know!
Sources: livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/real... | Hume TTS plugin guide | LiveKit Docsstrong-waitress-91852
10/29/2025, 3:41 PMtall-airline-16756
10/29/2025, 3:42 PMAttributeError: property 'tts' of 'FlightBookingAgent' object has no setter, which happens because the tts attribute in the agent class is set up as a read-only property. This means once the agent is initialized, you can’t reassign tts.
Here are a few friendly ways to work around this:
1. Set the TTS instance right when you initialize the agent, like this:
agent = FlightBookingAgent(
instructions="You are a flight booking assistant.",
tts=TTS(voice_name="hi-IN-Wavenet-Aoede")
)
1. If you want to change the TTS settings while the agent is running, you can use update_options to tweak the configuration:
self.tts.update_options(language="hi-IN")
1. And if you ever need to swap out the whole TTS setup, the best approach is to create a new AgentSession with the TTS configuration you want.
Feel free to reach out if you want me to walk you through any of these steps or if you have any other questions—I’m here to help!
Sources: livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/__init__.py | docs/index.yaml