Skip to content

Commit 67d7537

Browse files
author
Guido Urdaneta
committed
Add clarifications to audioLevel
1 parent 73c5464 commit 67d7537

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

index.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,21 @@ 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 locally sourced track, the level MUST be
713+
taken directly from the source.
714+
715+
For remotely sourced tracks, this MUST be converted from the level
716+
value defined in [[!RFC6464]]. If the RFC 6464 header extension is
717+
not present in the received packets, this value SHOULD be absent.
718+
This RFC defines the audio level as an integral value from 0 to 127
719+
representing the audio level in negative decibels relative to the
720+
loudest signal that the system could possibly encode. Thus, 0
721+
represents the loudest signal the system could possibly encode,
722+
and 127 represents silence. To convert these values to the linear
723+
0..1 range, a value of 127 is converted to 0, and all other values
724+
are converted using the equation:
725+
<code class="math">10^(-rfc_level/20)</code>.
711726
</p>
712727
</dd>
713728
</dl>

0 commit comments

Comments
 (0)