Measure noise level

Is there a simple way to add the possibility to measure the decibel of an existing audio stream?

I used the following module to measure the decibel level:

It works fine, but as soon as I use it in combination with webrtc, it fails. As far as I can debug the error message, it is related to the fact that both modules try to use the microphone at the same time.

Any ideas to tackle this issue?

I have a similar issue . I have voice recognizer app , and when i use this library , one of them stop working . I think its because android version . Before Android 10 the input audio stream could only be captured by one app at a time. in android 10 my app works but except that not working. Did you fixed your issue ? any idea how to fix this issue?