adventurous-iron-97326
08/14/2025, 1:13 PMtall-airline-16756
08/14/2025, 1:13 PMtall-airline-16756
08/14/2025, 1:14 PMAPIConnectOptions
). This means you can give your agents or bots a bit more time to wrap up their speech synthesis smoothly.
Here’s a quick example to show you how to set that timeout:
conn_options = APIConnectOptions(timeout=30.0)
tts.synthesize(text, conn_options=conn_options)
If things take longer than the timeout you set, you'll get an APITimeoutError
. Feel free to reach out if you want a hand with setting this up or have any other questions!
Sources: livekit-plugins/livekit-plugins-rime/livekit/plugins/rime/tts.py