Skip to main content
Overview > Inworld VAD Module Class: InworldVADModule | Inherits from: InworldFrameworkModule Module for Voice Activity Detection (VAD) within the Inworld framework. Analyzes audio input to determine when speech is present versus silence or background noise. Used for optimizing speech processing by filtering out non-speech audio segments.

Methods

Reference

DetectVoiceActivity

Detects voice activity in the provided audio chunk. Analyzes the audio data to determine if speech is present based on the configured threshold.

Parameters

ParameterTypeDescription
audioChunkAudioChunkThe audio data to analyze for voice activity.

Returns

Type: int Description: 1 if voice activity is detected, 0 if no voice activity, or -1 if detection failed.

Serialized Fields

The following fields are configurable in the Unity Inspector:
  • m_Threshold (float) - Voice activity detection threshold (default: 0.3, range: 0-1)

Important Notes

The VAD module only supports local model execution.