<@U084APK40NS> If I am forwarding multiple track a...
# ask-ai
c
@millions-hair-24956 If I am forwarding multiple track audio from my agent to livekit can I modify the track sent as adding a new attribute or not ?
g
It seems likely that you can modify attributes related to tracks when using LiveKit, but the specific ability to add new attributes to a track is not explicitly mentioned in the data sources. You can manage track publications and set certain properties when publishing tracks, such as using the
TrackPublishOptions
interface to define parameters like
name
,
source
, and
videoCodec
(TrackPublishOptions). However, adding custom attributes directly to a track is not detailed in the provided documentation. Would you like more detailed information on how to manage track publications or any other specific aspect of LiveKit? Sources: - TrackPublishOptions 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
c
@millions-hair-24956 If I am getting multiple audio tracks from agent how can i know which track is specific for which ?
g
To identify which audio track corresponds to which source, you can use the
TrackPublication
fields such as
name
,
source
, and
sid
to distinguish between different tracks. Each
TrackPublication
object contains metadata about the track, including a unique identifier (
sid
), the type of track (
kind
), and the source of the media (e.g.,
Camera
,
Microphone
,
ScreenShare
) (Types of participants). Would you like more detailed information on how to implement this in your application? Sources: - Types of participants 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.