how many tracks get published? say there are 2 par...
# ask-ai
b
how many tracks get published? say there are 2 participants - 1 agent and 1 sip?
t
Thanks for reaching out, Vishnu. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! In a LiveKit room with 2 participants—one being an agent and the other a SIP participant—you’ll typically see 2 audio tracks, one from each participant. Let me break it down for you: • The agent shares an audio track (like synthesized speech). • The SIP participant shares an audio track (such as their voice during the call). Usually, unless you’ve set it up differently (like adding video or custom data tracks), no other media tracks are published in this kind of setup. Sources: Realtime media | LiveKit Docs | Rooms, participants, and tracks | LiveKit Docs | test/lktest/livekit.go
b
what's a participant kind: standard?
t
Thanks for your question! A participant kind: standard in LiveKit simply means a regular participant, usually an end-user like someone using your web client. This kind of participant can both share (publish) and receive (consume) media streams during a session. It’s the default participant type and represents the typical interactive users you’d find in a room. I hope this helps clarify things for you! Sources: Rooms, participants, and tracks | LiveKit Docs | Sources/LiveKit/Protos/livekit_models.pb.swift
b
I am dispatching an agent to a room, but I don't see a track being published by any participant kind: 4(agent). Do agents not publish tracks?
t
Hi there! A participant with the role AGENT can definitely publish tracks in LiveKit, as long as they have the right permissions. Specifically, the
can_publish
field in their
ParticipantPermission
should be set to true. If you’re not seeing any tracks being published, no worries! Here are a couple of things you can check: • Make sure the agent's
ParticipantPermission
includes
can_publish: true
. • Double-check that the agent is set up to publish tracks like audio or video. If you’d like, I’m here to help you walk through verifying or updating these settings. Just let me know! Sources: livekit/livekit_models.pb.go | Sources/LiveKit/Types/ParticipantPermissions.swift | lib/src/proto/livekit_models.pb.dart | livekit-protocol/livekit/protocol/models.pyi | Realtime media | LiveKit Docs
b
Copy code
{
  "event_type": "participant_joined",
  "room_name": "stoke-inbound_+xxxxxx",
  "participant_identity": "sip_+xxxxxx",
  "participant_kind": 3,
  "track_type": 0,
  "local_user": "vishnu",
  "forwarded_from_production": true
}
what is the track_type here?
t
In LiveKit events,
track_type: 0
refers to an Audio track. Just to help you understand better, this is defined in the
TrackType
enum, where: •
0
= Audio •
1
= Video •
2
= Data If you have any more questions or need further clarification, feel free to ask—I'm here to help! Sources: livekit/livekit_analytics.pb.go | livekit-rtc/livekit/rtc/_proto/room_pb2.pyi