[webrtc-stats] RTCAudioSourceStats.audioLevel - what algorithm described in totalAudioEnergy? (#757)

hamishwillee has just created a new issue for https://github.com/w3c/webrtc-stats:

== RTCAudioSourceStats.audioLevel - what algorithm described in totalAudioEnergy? ==
The spec on `RTCAudioSourceStats.audioLevel` says [here](https://www.w3.org/TR/webrtc-stats/#dom-rtcaudiosourcestats-audiolevel):

> The [audioLevel](https://www.w3.org/TR/webrtc-stats/#dom-rtcaudiosourcestats-audiolevel) is averaged over some small interval, using the algorithm described under [totalAudioEnergy](https://www.w3.org/TR/webrtc-stats/#dom-rtcaudiosourcestats-totalaudioenergy). The interval used is implementation dependent.

In `totalAudioEnergy` it is not clear what algorithm is meant? Is it that you expect user agents to calculate the value by doing something like: `Math.sqrt((energy2 - energy1)/(duration2 - duration1))` using whatever duration they wish?



Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/757 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 9 May 2023 05:50:22 UTC