AudioBridge audiolevel_event

Hi , i created a room with audiolevel_event is set to true and i can see the room in my config

room-1234 :
{
description = “RTC”;
sampling_rate = “16000”;
secret = “***”;
audiolevel_ext = “yes”;
audiolevel_event = “yes”;
audio_active_packets = “100”;
audio_level_average = “25”;
};
but it seems i never receive any event in my websocket related to audio level while user speaking . any idea why ?

Have you tried to use true value, like in samole config?

I am having the same struggle here.

I have “audiolevel_event = true” and “events = true” but I am not seeing the event. I have this set in both janus.plugin.audiobridge.jcfg and janus.plugin.videoroom.jcfg

I do see this in the server debug

[rtp.c:janus_rtp_header_extension_parse_audio_level:222] c2 --> v=1, level=66
[rtp.c:janus_rtp_header_extension_parse_audio_level:222] c3 --> v=1, level=67
[rtp.c:janus_rtp_header_extension_parse_audio_level:222] c1 --> v=1, level=65
[rtp.c:janus_rtp_header_extension_parse_audio_level:222] bc --> v=1, level=60

How can use this data to make an audio level indicator in the browser? I am trying with the demo mvideoroom.js

How can I capture this event?

You have to edit the audio_active_packets and audio_level_average properties as well, otherwise the levels you’re sending may not pass the threshold that’s considered speech activity. More details in the configuration file:

1 Like