Simple voice activity detector triggered by signal level. More...
Inherits IProcessor< T >, and AudioUtil.IVoiceDetector.
Public Member Functions | |
abstract T[] | Process (T[] buf) |
Process a frame of data. More... | |
void | Dispose () |
Protected Attributes | |
float | norm |
float | threshold |
int | activityDelay |
int | autoSilenceCounter = 0 |
int | valuesCountPerSec |
int | activityDelayValuesCount |
Properties | |
bool | On [get, set] |
If true, voice detection enabled. More... | |
float | Threshold [get, set] |
Voice detected as soon as signal level exceeds threshold. More... | |
bool | Detected [get, protected set] |
If true, voice detected. More... | |
DateTime | DetectedTime [get] |
Last time when switched to detected state. More... | |
int | ActivityDelayMs [get, set] |
Keep detected state during this time after signal level dropped below threshold. More... | |
Properties inherited from AudioUtil.IVoiceDetector | |
bool | On [get, set] |
If true, voice detection enabled. More... | |
float | Threshold [get, set] |
Voice detected as soon as signal level exceeds threshold. More... | |
bool | Detected [get] |
If true, voice detected. More... | |
DateTime | DetectedTime [get] |
Last time when switched to detected state. More... | |
int | ActivityDelayMs [get, set] |
Keep detected state during this time after signal level dropped below threshold. More... | |
Events | |
Action | OnDetected |
Called when switched to detected state. More... | |
Events inherited from AudioUtil.IVoiceDetector | |
Action | OnDetected |
Called when switched to detected state. More... | |
Simple voice activity detector triggered by signal level.
|
pure virtual |
Process a frame of data.
buf | Buffer containing input data |
Implements IProcessor< T >.
|
getset |
Keep detected state during this time after signal level dropped below threshold.
|
getprotected set |
If true, voice detected.
|
get |
Last time when switched to detected state.
|
getset |
If true, voice detection enabled.
|
getset |
Voice detected as soon as signal level exceeds threshold.
Action OnDetected |
Called when switched to detected state.