kind-school-76204
07/08/2025, 10:06 AMtall-airline-16756
07/08/2025, 10:06 AMtall-airline-16756
07/08/2025, 10:07 AMaudioLevel
property on the Participant
class. This property gives you a value between 0 and 1, representing the audio intensity, where 1 is the highest level.
How to use it:
double audioLevel = participant.audioLevel;
This works for both local and remote participants (agents) since they inherit from Participant
. To track this over time, you might set up listeners or regularly check this property.
Note that this value is a normalized audio level rather than a precise decibel measurement.
If you need more detailed guidance on implementing this or handling the data, please let me know.kind-school-76204
07/08/2025, 10:16 AMtall-airline-16756
07/08/2025, 10:16 AMaudioLevel
property on the Participant
object as your personal audio meter - it'll give you a reading between 0 and 1, where 1 means someone's really projecting their voice. 🎙️
// Example in JavaScript
const audioLevel = participant.audioLevel;
And the best part? This works seamlessly for both local and remote participants. Pretty cool, right?
Sources: Participant | LiveKit JS Client SDK - v2.8.1kind-school-76204
07/08/2025, 10:17 AMtall-airline-16756
07/08/2025, 10:18 AMaudioLevel
property in a way that's super easy to understand. Think of it like a volume meter for participants in your LiveKit app. 🔊 It's a simple double
that goes from 0 to 1, where 1 means someone's basically shouting (or singing karaoke super loud)!
The cool part? This property works for both local and remote participants, so you're covered no matter who's speaking. Pretty handy, right?
Wanna see how simple it is to grab the current audio level? Check this out:
double currentAudioLevel = participant.audioLevel;
Want to dive deeper? I've got you covered with some helpful links to the official docs:
• Participant Class Documentation
• LocalParticipant Class Documentation
• RemoteParticipant Class Documentation Sources: RemoteParticipant class - livekit_client library - Dart API | audioLevel property - Participant class - livekit_client library - Dart API | LocalParticipant class - livekit_client library - Dart API