From 177a70ac4aff7b2f5f9cee3553c4155eb7e9985e Mon Sep 17 00:00:00 2001 From: Guido Urdaneta Date: Tue, 6 May 2025 10:51:39 +0200 Subject: [PATCH 1/2] Add audioLevel to RTCEncodedAudioFrameMetadata --- index.bs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.bs b/index.bs index 620628e..dbf20d6 100644 --- a/index.bs +++ b/index.bs @@ -677,6 +677,7 @@ dictionary RTCEncodedAudioFrameMetadata { DOMHighResTimeStamp captureTime; DOMHighResTimeStamp senderCaptureTimeOffset; DOMString mimeType; + double audioLevel; }; ### Members ### {#RTCEncodedAudioFrameMetadata-members} @@ -771,6 +772,16 @@ dictionary RTCEncodedAudioFrameMetadata { [[!IANA-MEDIA-TYPES]], e.g. audio/opus.

+
+ audioLevel doublt +
+
+

+ 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. +

+
## RTCEncodedAudioFrame interface ## {#RTCEncodedAudioFrame-interface} From 1f230e42c098785fd92b933418e4e5ee81816b9e Mon Sep 17 00:00:00 2001 From: guidou Date: Thu, 15 May 2025 14:49:04 +0000 Subject: [PATCH 2/2] Fix typo --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index dbf20d6..771b9da 100644 --- a/index.bs +++ b/index.bs @@ -773,7 +773,7 @@ dictionary RTCEncodedAudioFrameMetadata {

- audioLevel doublt + audioLevel double