The method session.input.set_audio_enabled(False) is used to disable audio input in an AgentSession. This is particularly useful in manual turn control scenarios, such as implementing a push-to-talk interface. When you set audio input to False, the agent stops listening to the user's audio input. You can re-enable it by setting it to True using session.input.set_audio_enabled(True). This method is commonly used in workflows where manual control over audio input is required. Sources:
Turn detection and interruptions | LiveKit Docs |
Tree View: | dse-workbench