Dear team,
We are working on android and iOS application audio only. We are facing similar kind of audio crackling and clicking issue using janus audioBridge.
I will post my detailed analysis here in terms of audio being received on janus media server as well as after mixing of audio packets.
Tools and Development Setup:
Janus Media Server: Branch: master
Janus version: 1202 (1.2.2)
Janus commit: 15ef4d6cde38ea8d441f7e27eba298265c2a7358
Compiled on: Thu Jan 4 11:14:47 UTC 2024
** AWS EC2 Instance: C5.2xlarge - Mumbai Region **
Android side Janus Payload for Create/Join
Room:
Create Room Payload:
createRoom {"janus":"message","body":{"request":"create","is_private":false,"audiolevel_event":true,"audio_level_average":100,"default_expectedloss":20,"audio_active_packets":200,"description":"My awesome room","sampling_rate":48000,"record":true,"record_dir":"\/home\/admin\/janus-record","mjrs":true,"mjrs_dir":"\/home\/admin\/janus-record\/mjrs"},"transaction":"lT6fclBcj9GA","session_id":8573312763821879,"handle_id":7927896452164538}
Join Room Payload:
publisher joiningRoom {"janus":"message","body":{"request":"join","room":"3b3a1de1-7704-4cf0-b896-f4072c9174df","ptype":"publisher","display":"pixel 4a ufone","quality":9,"audio_level_average":100,"audio_active_packets":200,"expected_loss":20,"sampling_rate":48000},"transaction":"h5ajkOi8YEol","session_id":8573312763821879,"handle_id":7927896452164538}
I have obtained the wav files for individual participants as well as after mixed audio wav file from janus server side. Here is the analysis of 1v1 audio call using janus AudioBridge.
I am posting screenshots for better understanding in this google drive link:
Janus AudioBridge | Audio Analysis using Audacity
Here is single screenshot from my above analysis using Audacity tool:
In each of the above screenshot it can be seen that audio which is being sent by android endpoints and being received on janus media server is perfectly clean but after mixing, there are some random delays where mixed audio become disappeared and causing cracking and clicking sounds on android side.
One thing to clear, there is no load on janus media server in terms of concurrent calls and we are not using any video streams at all. This is audio only application for android and during our testing only single audio call was happening. We haven’t changed any janus stack at all.
Can anyone please assist in this regard?
Thanks