VadModule

The VadModule class is responsible for configuring voice activity detection settings. This helps distinguish between speech and silence.

Methods

public void SetMode(string mode)

  • Description: Sets the aggressiveness mode for the VAD.

  • Parameters:

    • string mode: The VAD mode.

public void SetThreshold(float trueMs, float falseMs)

  • Description: Sets the time thresholds in milliseconds for switching between speech and silence classifications.

  • Parameters:

    • float trueMs: The minimum duration in milliseconds to classify a sound as voice.

    • float falseMs: The minimum duration in milliseconds to classify a lack of sound as silence.