You're asking whether you can turn noise cancellation off for one agent and then turn it back on when switching to another agent — yes, you can.
Noise cancellation is set per AgentSession via the session's RoomInputOptions. Each session has its own input pipeline, so:
• Start Agent A's session with noise cancellation disabled.
• When you switch to Agent B, start a new session for that agent with noise cancellation enabled.
Note: noise cancellation is applied when a session starts and cannot be toggled mid-session; changing it requires creating (or restarting) the session with the desired
room_options
.
If you'd like, tell me which SDK/language you're using and I can provide a short code snippet for that environment.
Sources:
Enhanced noise cancellation | LiveKit docs |
Agent session | LiveKit docs