fresh-belgium-19709
09/03/2025, 9:40 PMtall-airline-16756
09/03/2025, 9:40 PMtall-airline-16756
09/03/2025, 9:41 PMparticipant_kinds setting in RoomInputOptions to have it interact with everyone in the room.
Here’s a quick way to update that configuration:
from livekit.agents import RoomInputOptions
await session.start(
agent=MyAgent(),
room=ctx.room,
room_input_options=RoomInputOptions(
participant_kinds=[
rtc.ParticipantKind.PARTICIPANT_KIND_STANDARD,
rtc.ParticipantKind.PARTICIPANT_KIND_SIP,
rtc.ParticipantKind.PARTICIPANT_KIND_AGENT, # Enable interaction with other agents
]
),
)
With this setup, your agent will listen to audio and text from all kinds of participants—not just the first one or standard users.
Also, if you have multiple people speaking, you might want to try using a MultiSpeakerAdapter with your STT provider. It helps to keep track of who’s talking and makes the interaction smoother.
If you hit any snags or want to chat more about this, just let me know—I’m here to help!
Sources: How to set a fixed participant for agent audio processing | How to test your agent using another agent | livekit-agents/livekit/agents/voice/room_io/room_io.py