feat: Carry audio level and VAD flag in mediajson media events - #237
Merged
Conversation
Adds optional audioLevel (RFC 6464, 0-127 -dBov) and vad fields to the mediajson Media, so a sender's per-frame ssrc-audio-level information can be forwarded to the transcription/translation peer. Both are omitted when absent.
JonathanLennox
approved these changes
Jul 14, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #237 +/- ##
============================================
+ Coverage 34.56% 34.65% +0.09%
Complexity 162 162
============================================
Files 36 36
Lines 1380 1382 +2
Branches 140 140
============================================
+ Hits 477 479 +2
Misses 870 870
Partials 33 33
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
jitsi-ci Bot
pushed a commit
to jitsi/jitsi-pr-tests-pages
that referenced
this pull request
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two optional fields to the mediajson
Media:audioLevel— RFC 6464 audio level (0-127, i.e. -dBov: 0 loudest, 127 silence), as reported by the sender in the ssrc-audio-level RTP header extension.vad— RFC 6464 Voice Activity Detection flag.Both are optional and omitted from the wire when absent (sender didn't include the extension), so this is backward compatible. Encoded as natural JSON number/boolean, not string-encoded like the VoxImplant-derived
chunk/timestamp.This lets JVB forward per-frame speech information to the transcription/translation peer (opus-transcriber-proxy), which can use it to gate audio and avoid sending silence to paid STT backends.
Consumer side: jitsi/jitsi-videobridge#2430 (same branch name, built together by CI).