View Source Membrane.RTP.VAD (Membrane RTP plugin v0.23.1)
Vad based on audio level sent in RTP header.
To make this module work appropriate RTP header extension has to be set in the SDP offer/answer.
A more detailed explanation of how the VAD algorithm can be found in the
Buffers that are processed by this element may or may not have been processed by a depayloader and passed through a jitter buffer. If they have not, then the only timestamp available for time comparison is the RTP timestamp.
When calculating the epoch of the timestamp, we need to account for 32bit integer wrapping.
:current- the difference between timestamps is low: the timestamp has not wrapped around.
:next- the timestamp has wrapped around to 0. To simplify queue processing we reset the state.
:prev- the timestamp has recently wrapped around. We might receive an out-of-order packet from before the rollover, which we ignore.
Passed via struct
ID of VAD header extension.
Audio level in dBov representing vad threshold. Values above are considered to represent voice activity. Value -127 represents digital silence.