cuddly-lizard-69432
03/27/2025, 2:17 PMtall-airline-16756
03/27/2025, 2:17 PMtall-airline-16756
03/27/2025, 2:17 PMaudioLevel
property of the participant object. This property provides a value between 0 and 1, with 1 being the loudest.
You can monitor audio levels when a participant is speaking by using the IsSpeakingChanged
event:
participant.on(ParticipantEvent.IsSpeakingChanged, (speaking: boolean) => {
console.log(
`${participant.identity} is ${speaking ? 'now' : 'no longer'} speaking. audio level: ${participant.audioLevel}`,
);
});
This event handler will be triggered whenever a participant's speaking status changes, and it includes the current audio level of that participant.
Sources: Subscribing to tracks | LiveKit Docscuddly-lizard-69432
03/27/2025, 2:25 PMtall-airline-16756
03/27/2025, 2:25 PMcuddly-lizard-69432
03/27/2025, 2:25 PM