Show / Hide Table of Contents

Class EnergyThresholdVAD

Adaptive energy threshold voice activity detection (VAD) implementation. It can be used to enable hands-free operation of the SLU decoder.

When enough frames with a signal stronger than SignalToNoiseDb have been detected, IsSignalDetected goes true. When enough silent frames have been detected, IsSignalDetected goes false after the sustain time. Use its public fields to configure the static noise gate level, signal-to-noise level, activation/deactivation treshold (ratio of signal to silent frames) and the signal sustain time. The background noise level gradually adapts when no signal is detected.

IsSignalDetected can be used to drive SpeechlyClient's Start and Stop automatically by setting ControlListening true.

Inheritance
System.Object
EnergyThresholdVAD
Namespace: Speechly.Tools
Assembly: speechly-dotnet.dll
Syntax
public class EnergyThresholdVAD : object

Constructors

| Improve this Doc View Source

EnergyThresholdVAD(VADOptions, AudioInfo)

Declaration
public EnergyThresholdVAD(VADOptions options, AudioInfo output)
Parameters
Type Name Description
VADOptions options
AudioInfo output

Properties

| Improve this Doc View Source

Options

Declaration
public VADOptions Options { get; }
Property Value
Type Description
VADOptions
| Improve this Doc View Source

Output

Declaration
public AudioInfo Output { get; }
Property Value
Type Description
AudioInfo

Methods

| Improve this Doc View Source

ProcessFrame(Single[], Int32, Int32)

Declaration
public void ProcessFrame(float[] floats, int start = 0, int length = null)
Parameters
Type Name Description
System.Single[] floats
System.Int32 start
System.Int32 length
| Improve this Doc View Source

ResetVAD()

Declaration
public void ResetVAD()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX