[mediacapture-main] Volume attributes for audio MediaStreamTracks?

alvestrand has just created a new issue for https://github.com/w3c/mediacapture-main:

== Volume attributes for audio MediaStreamTracks? ==
Discussion in various places, including https://github.com/w3c/webrtc-stats/issues/353, https://github.com/w3c/webrtc-stats/issues/271 and others, lead to the conclusion that we have a legitimate need to get the audio level of an audio track, with or without the track being connected to an RTCPeerConnection (so getStats is inappropriate).

Use cases for both the input audio level (choosing the track, detecting clipping) and output audio level (displaying level after AGC and echo cancellation) for the track have been made.

Audio level is not a simple concept (need to specify sampling interval, decay rate if averaged and so on); we might want to consider using TotalAudioEnergy as the webrtc-stats does, or we might want to find an EBU (or other) recommendation that gives us a precedent to follow.

Tagging @henbos @vr000m @huibk




Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/523 using your GitHub account

Received on Thursday, 21 June 2018 10:50:45 UTC