webrtc-stats icon indicating copy to clipboard operation
webrtc-stats copied to clipboard

RTCAudioHandlerStats: Signal/Noise Ratio

Open aboba opened this issue 6 years ago • 5 comments

Currently in RTCAudioHandlerStats we have audioLevel and totalAudioEnergy, but no estimate of the level of noise and signal. In Edge, we collect the following stats: https://rawgit.com/aboba/edgertc/master/msortc-rs4.html#msaudiorecvsignal*

aboba avatar Nov 21 '18 17:11 aboba

@aboba @henbos Since MS/Edge and Google/Chrome have implementations of the audio stack, could someone from your team take a first stab at proposals for this?

I am happy to review.

vr000m avatar Nov 21 '18 23:11 vr000m

Do we have a definition of SNR that people can turn into code?

alvestrand avatar Nov 29 '18 17:11 alvestrand

Edge provides the following tap points:

  • Signal levels as captured from the mic (pre AEC or any other processing such as AGC)
  • Signal levels post WebRTC DSP such as AEC
  • Signal levels post NetEQ on the render side
  • Signal levels post any signal processing such as AGC or DRC on the render path

Perhaps these metrics would better be added to RTCAudioSenderStats?

aboba avatar Apr 10 '19 19:04 aboba

If we had the background audio level, could a meaningful "signal/noise ratio" be derived by dividing signal audio level (total - background noise level) by total audio level?

henbos avatar Sep 06 '19 15:09 henbos

Removing TPAC label for the same reason as described here.

henbos avatar Sep 12 '19 13:09 henbos