这是indexloc提供的服务,不要输入任何密码
Skip to content

Session output mode switching does not seem to work like examples #2958

@bcliffor

Description

@bcliffor

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

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions