-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hello,
I am trying to have my application switch between outputting audio or just text during the lifecycle of an agent at the end user's request. I am following an example like this one
agents/examples/voice_agents/toggle_io.py
Line 69 in 1032993
session.output.set_audio_enabled(True) |
Where we toggle output audio mode on and off. However this does not appear to have any affect. I have to full close the session and start a new one with new output audio mode options for anything to take affect. My session object reports that self.session.output._audio_enabled is correctly set, but the actual output mode does not change.
Glancing at the session code, it seems like the session is built to take into account changes in input audio but not output?
def _on_audio_output_changed(self) -> None: |
Some input here would be greatly appreciated as it causes a poor experience to have to close and re-open a session within our app when changing modes.
Thank you!