@@ -708,6 +708,23 @@ dictionary RTCEncodedAudioFrameMetadata : RTCEncodedFrameMetadata {
708708 The audio level of this frame. The value is between 0..1 (linear),
709709 where 1.0 represents 0 dBov, 0 represents silence, and 0.5 represents
710710 approximately 6 dBSPL change in the sound pressure level from 0 dBov.
711+
712+ If the frame comes from a remotely sourced track, this MUST be
713+ converted from the level value defined in [[!RFC6464]] . If the
714+ [[!RFC6464]] header extension is not present in the received packets of the frame,
715+ this value MUST be absent.
716+ This RFC defines the audio level as an integral value from 0 to 127
717+ representing the audio level in negative decibels relative to the
718+ loudest signal that the system could possibly encode. Thus, 0
719+ represents the loudest signal the system could possibly encode,
720+ and 127 represents silence. To convert these values to the linear
721+ 0..1 range, a value of 127 is converted to 0, and all other values
722+ are converted using the equation:
723+ <code class="math"> 10^(-rfc_level/20)</code> .
724+
725+ If the frame comes from a locally sourced track, the level MUST be
726+ taken directly from the source and used as input to generate a value
727+ for the [[!RFC6464]] header extension, if negotiated.
711728 </p>
712729 </dd>
713730</dl>
0 commit comments