Skip to content

Commit 7010343

Browse files
Add clarifications to audioLevel (#255)
SHA: cf0e77a Reason: push, by youennf Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 30d77d9 commit 7010343

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

index.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
88
<meta content="Bikeshed version b25686b9f, updated Fri Mar 14 14:15:20 2025 -0700" name="generator">
99
<link href="https://www.w3.org/TR/webrtc-encoded-transform/" rel="canonical">
10-
<meta content="73c546481384b21a72a45d7f829054eace08ea9f" name="revision">
10+
<meta content="cf0e77a7e4f372ef8e6e4cb1f1cdfb2d2bcb3d71" name="revision">
1111
<meta content="dark light" name="color-scheme">
1212
<link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css">
1313
<style>/* Boilerplate: style-autolinks */
@@ -695,7 +695,7 @@
695695
<div class="head">
696696
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
697697
<h1 class="p-name no-ref" id="title">WebRTC Encoded Transform</h1>
698-
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2025-05-15">15 May 2025</time></p>
698+
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2025-05-22">22 May 2025</time></p>
699699
<details open>
700700
<summary>More details about this document</summary>
701701
<div data-fill-with="spec-metadata">
@@ -1391,6 +1391,20 @@ <h4 class="heading settled" data-level="4.5.1" id="RTCEncodedAudioFrameMetadata-
13911391
<p> The audio level of this frame. The value is between 0..1 (linear),
13921392
where 1.0 represents 0 dBov, 0 represents silence, and 0.5 represents
13931393
approximately 6 dBSPL change in the sound pressure level from 0 dBov. </p>
1394+
<p>If the frame comes from a remotely sourced track, this MUST be
1395+
converted from the level value defined in <a data-link-type="biblio" href="#biblio-rfc6464" title="A Real-time Transport Protocol (RTP) Header Extension for Client-to-Mixer Audio Level Indication">[RFC6464]</a>. If the <a data-link-type="biblio" href="#biblio-rfc6464" title="A Real-time Transport Protocol (RTP) Header Extension for Client-to-Mixer Audio Level Indication">[RFC6464]</a> header extension is not present in the received packets of the frame,
1396+
this value MUST be absent.
1397+
This RFC defines the audio level as an integral value from 0 to 127
1398+
representing the audio level in negative decibels relative to the
1399+
loudest signal that the system could possibly encode. Thus, 0
1400+
represents the loudest signal the system could possibly encode,
1401+
and 127 represents silence. To convert these values to the linear
1402+
0..1 range, a value of 127 is converted to 0, and all other values
1403+
are converted using the equation: <code class="math">10^(-rfc_level/20)</code>.</p>
1404+
<p>If the frame comes from a locally sourced track, the level MUST be
1405+
taken directly from the source and used as input to generate a value
1406+
for the <a data-link-type="biblio" href="#biblio-rfc6464" title="A Real-time Transport Protocol (RTP) Header Extension for Client-to-Mixer Audio Level Indication">[RFC6464]</a> header extension, if negotiated.</p>
1407+
<p></p>
13941408
</dl>
13951409
<h3 class="heading settled" data-level="4.6" id="RTCEncodedAudioFrame-interface"><span class="secno">4.6. </span><span class="content"><dfn class="dfn-paneled idl-code" data-dfn-type="interface" data-export id="rtcencodedaudioframe"><code>RTCEncodedAudioFrame</code></dfn> interface</span><a class="self-link" href="#RTCEncodedAudioFrame-interface"></a></h3>
13961410
<pre class="idl highlight def"><c- b>dictionary</c-> <dfn class="dfn-paneled idl-code" data-dfn-type="dictionary" data-export id="dictdef-rtcencodedaudioframeoptions"><code><c- g>RTCEncodedAudioFrameOptions</c-></code></dfn> {
@@ -2109,6 +2123,8 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
21092123
<dd>Cullen Jennings; et al. <a href="https://w3c.github.io/mediacapture-main/"><cite>Media Capture and Streams</cite></a>. URL: <a href="https://w3c.github.io/mediacapture-main/">https://w3c.github.io/mediacapture-main/</a>
21102124
<dt id="biblio-rfc2119">[RFC2119]
21112125
<dd>S. Bradner. <a href="https://datatracker.ietf.org/doc/html/rfc2119"><cite>Key words for use in RFCs to Indicate Requirement Levels</cite></a>. March 1997. Best Current Practice. URL: <a href="https://datatracker.ietf.org/doc/html/rfc2119">https://datatracker.ietf.org/doc/html/rfc2119</a>
2126+
<dt id="biblio-rfc6464">[RFC6464]
2127+
<dd>J. Lennox, Ed.; E. Ivov; E. Marocco. <a href="https://www.rfc-editor.org/rfc/rfc6464"><cite>A Real-time Transport Protocol (RTP) Header Extension for Client-to-Mixer Audio Level Indication</cite></a>. December 2011. Proposed Standard. URL: <a href="https://www.rfc-editor.org/rfc/rfc6464">https://www.rfc-editor.org/rfc/rfc6464</a>
21122128
<dt id="biblio-rfc8851">[RFC8851]
21132129
<dd>A.B. Roach, Ed.. <a href="https://www.rfc-editor.org/rfc/rfc8851"><cite>RTP Payload Format Restrictions</cite></a>. January 2021. Proposed Standard. URL: <a href="https://www.rfc-editor.org/rfc/rfc8851">https://www.rfc-editor.org/rfc/rfc8851</a>
21142130
<dt id="biblio-rtp-ext-capture-time">[RTP-EXT-CAPTURE-TIME]

0 commit comments

Comments
 (0)