Skip to content

Commit cf0e77a

Browse files
guidouGuido Urdanetayouennfjan-ivar
authored
Add clarifications to audioLevel (#255)
* Add clarifications to audioLevel * Address review comment * minor change in refs * Apply suggestions from code review Co-authored-by: youennf <[email protected]> Co-authored-by: Jan-Ivar Bruaroey <[email protected]> --------- Co-authored-by: Guido Urdaneta <[email protected]> Co-authored-by: youennf <[email protected]> Co-authored-by: Jan-Ivar Bruaroey <[email protected]>
1 parent 73c5464 commit cf0e77a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

index.bs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)