sparse-photographer-77518
09/05/2025, 2:24 PMtall-airline-16756
09/05/2025, 2:24 PMtall-airline-16756
09/05/2025, 2:25 PM@room.on("track_published")
def on_track_published(track, participant):
if participant.kind == lksdk.ParticipantKind.PARTICIPANT_KIND_SIP and track.kind == TrackKind.AUDIO:
track.set_subscribed(False) # This way, you won’t receive the audio
• Turning off audio in agent sessions. Here's a quick example:
session = AgentSession(
room_input_options=RoomInputOptions(audio_enabled=False),
room_output_options=RoomOutputOptions(audio_enabled=False),
)
These steps help make sure the audio stream isn’t processed or forwarded. If you want a hand setting this up in a particular SDK or environment, just let me know—I’m here to help!
Sources: SIP Integration | livekit/livekit_composite | DeepWiki | test/integration/sip_test.go | livekit-rtc/livekit/rtc/audio_stream.py | Text and transcriptions | LiveKit Docs | Text and transcriptions | LiveKit Docs