View Source Voice Activity Detection
Voice Activity Detection (VAD) is a feature available in Membrane RTC Engine that allows you to receive notifications about voice activity. You may also know it as speech detection.
After enabling this feature, you're going to start receiving vadNotification media events in your client application.
These media events contain a trackId and vadStatus - either speech or silence.
Depending on the SDK, a callback or other means of publishing this information may be available. Please refer to the documentation of your SDK.
enabling-vad
Enabling VAD
To enable VAD you need to
- Enable VAD RTP header extension
- Enable VAD WebRTC extension
In practice, ensure that:
Membrane.WebRTC.Extension.VADis present in thewebrtc_extensionskey of your WebRTC Endpoint configuration- The following is part of the
extensionskey in your WebRTC Endpoint configuration%{ opus: Membrane.RTP.VAD }