Skip to content

Add audioLevel to RTCEncodedAudioFrameMetadata #253

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 2 commits into from
May 15, 2025
Merged
Changes from all commits
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
11 changes: 11 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ dictionary RTCEncodedAudioFrameMetadata {
DOMHighResTimeStamp captureTime;
DOMHighResTimeStamp senderCaptureTimeOffset;
DOMString mimeType;
double audioLevel;
};
</pre>
### Members ### {#RTCEncodedAudioFrameMetadata-members}
Expand Down Expand Up @@ -771,6 +772,16 @@ dictionary RTCEncodedAudioFrameMetadata {
[[!IANA-MEDIA-TYPES]], e.g. audio/opus.
</p>
</dd>
<dt>
<dfn dict-member>audioLevel</dfn> <span class="idlMemberType">double</span>
</dt>
<dd>
<p>
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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we could add that audioLevel is there for sending side and is based on RTP header extension for receiving.
It it also probably the audio level of this frame, not of others.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe on sending side, state that this is what would be used for the RTP header extension.

</p>
</dd>
</dl>

## <dfn interface>RTCEncodedAudioFrame</dfn> interface ## {#RTCEncodedAudioFrame-interface}
Expand Down