Speech module

VoiceActivityDetectorConfig

Settings for a VoiceActivityDetector: the source it reports for,

#include <icy/speech/voiceactivitydetector.h>

struct VoiceActivityDetectorConfig

Defined in src/speech/include/icy/speech/voiceactivitydetector.h:31

Settings for a VoiceActivityDetector: the source it reports for, the levels that start and stop speech, how long silence lasts before speech ends, and how often it reports while speech continues.

Public Attributes

ReturnNameDescription
std::stringsource
std::stringdetectorName
intsampleRateHint
floatstartThreshold
floatstopThreshold
int64_tminSilenceUsec
int64_tupdateIntervalUsec

source

std::string source

Defined in src/speech/include/icy/speech/voiceactivitydetector.h:33


detectorName

std::string detectorName = "energy_vad"

Defined in src/speech/include/icy/speech/voiceactivitydetector.h:34


sampleRateHint

int sampleRateHint = 0

Defined in src/speech/include/icy/speech/voiceactivitydetector.h:35


startThreshold

float startThreshold = 0.045f

Defined in src/speech/include/icy/speech/voiceactivitydetector.h:36


stopThreshold

float stopThreshold = 0.020f

Defined in src/speech/include/icy/speech/voiceactivitydetector.h:37


minSilenceUsec

int64_t minSilenceUsec = 250000

Defined in src/speech/include/icy/speech/voiceactivitydetector.h:38


updateIntervalUsec

int64_t updateIntervalUsec = 250000

Defined in src/speech/include/icy/speech/voiceactivitydetector.h:39