busy-breakfast-32623
08/21/2025, 8:51 AMBVCTelephony for best results
noise_cancellation=noise_cancellation.BVC(),
),
)
print("Room created:", ctx.room)
await ctx.connect()
# Subscribe to tracks from participants who are already in the room
for participant in ctx.room.remote_participants.values():
print(f"Found existing participant: {participant.name}")
for track_publication in participant.track_publications.values():
if track_publication.track is not None:
print(f"Subscribing to existing track: {track_publication.track.kind} from {participant.name}")
track_publication.set_subscribed(True)
await session.generate_reply(
instructions="start with a greeting ",
)
even though i am subscribing to the new track still the agent cant listen to the new partecipant agent is not responding to the new partecipants audio .tall-airline-16756
08/21/2025, 8:51 AMtall-airline-16756
08/21/2025, 8:52 AMmin_silence_duration in your VAD settings to see if that helps.
• Participant Linking: Double-check that the agent is properly linked to the participant using the #linkParticipant method. The agent only processes audio from the participant it’s linked to.
• Track Source Verification: Make sure the published track’s source is TrackSource.SOURCE_MICROPHONE. The agent only works with microphone audio.
• Audio Stream Processing: Confirm that the audio stream is being created and processed correctly. It’s a good idea to verify details like sample rate, channels, and frame size.
• Stream Attachment: Check that the input stream is properly attached using the on_attached() method. If streams aren’t attached, frames can get dropped.
• Session Initialization: Make sure the agent’s session is created and started before it tries to process any participant audio.
If you want to dig a bit deeper, here are some helpful tips:
• Keep an eye on the agent’s state transitions (like initializing, listening, thinking, speaking).
• Listen for TrackSubscribed events to confirm the track subscription is working.
• Log audio frames to see if they’re being received and processed properly.
• Verify that the linkedParticipant.identity matches the participant whose audio you want to process.
If you want, I’m here to help you troubleshoot any part of your setup or go through logs that might shed some light on the issue. Just let me know!
Sources: agents/src/multimodal/multimodal_agent.ts | livekit-agents/livekit/agents/voice/room_io/_input.py | Web and mobile frontends | LiveKit Docs | Web and mobile frontends | LiveKit Docs | Speech & Audio Processing | livekit/livekit_composite | DeepWiki