Skip to content

Add clarifications to audioLevel #255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 22, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,21 @@ dictionary RTCEncodedAudioFrameMetadata : RTCEncodedFrameMetadata {
The audio level of this frame. The value is between 0..1 (linear),
where 1.0 represents 0 dBov, 0 represents silence, and 0.5 represents
approximately 6 dBSPL change in the sound pressure level from 0 dBov.

If the frame comes from a locally sourced track, the level MUST be
taken directly from the source.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add that this level will be used as input to generate a RFC 6464 header extension if negotiated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


For remotely sourced tracks, this MUST be converted from the level
value defined in [[!RFC6464]]. If the RFC 6464 header extension is
not present in the received packets, this value SHOULD be absent.
This RFC defines the audio level as an integral value from 0 to 127
representing the audio level in negative decibels relative to the
loudest signal that the system could possibly encode. Thus, 0
represents the loudest signal the system could possibly encode,
and 127 represents silence. To convert these values to the linear
0..1 range, a value of 127 is converted to 0, and all other values
are converted using the equation:
<code class="math">10^(-rfc_level/20)</code>.
</p>
</dd>
</dl>
Expand Down