VoiceActivityDetector
VoiceActivityDetector
#include <icy/speech/voiceactivitydetector.h>class VoiceActivityDetectorDefined in src/speech/include/icy/speech/voiceactivitydetector.h:50
List of all members
| Name | Kind | Owner |
|---|---|---|
Event | variable | Declared here |
VoiceActivityDetector | function | Declared here |
setConfig | function | Declared here |
config | function | Declared here |
stats | function | Declared here |
reset | function | Declared here |
process | function | Declared here |
_config | variable | Declared here |
_sequence | variable | Declared here |
_seen | variable | Declared here |
_emitted | variable | Declared here |
_lastUpdateUsec | variable | Declared here |
_lastBelowThresholdUsec | variable | Declared here |
_active | variable | Declared here |
_lastLevel | variable | Declared here |
_lastPeak | variable | Declared here |
measure | function | Declared here |
emitEvent | function | Declared here |
sanitize | function | Declared here |
Public Attributes
| Return | Name | Description |
|---|---|---|
Signal< void(const SpeechEvent &)> | Event |
Event
Signal< void(const SpeechEvent &)> EventDefined in src/speech/include/icy/speech/voiceactivitydetector.h:60
Public Methods
| Return | Name | Description |
|---|---|---|
VoiceActivityDetector explicit | ||
void | setConfig | |
VoiceActivityDetectorConfig | config const | |
VoiceActivityDetectorStats | stats const | |
void | reset | |
void | process |
VoiceActivityDetector
explicit
explicit VoiceActivityDetector(VoiceActivityDetectorConfig config = {})Defined in src/speech/include/icy/speech/voiceactivitydetector.h:62
setConfig
void setConfig(VoiceActivityDetectorConfig config)Defined in src/speech/include/icy/speech/voiceactivitydetector.h:64
config
const
VoiceActivityDetectorConfig config() constDefined in src/speech/include/icy/speech/voiceactivitydetector.h:65
stats
const
VoiceActivityDetectorStats stats() constDefined in src/speech/include/icy/speech/voiceactivitydetector.h:66
reset
void reset()Defined in src/speech/include/icy/speech/voiceactivitydetector.h:67
process
void process(const av::PlanarAudioPacket & packet)Defined in src/speech/include/icy/speech/voiceactivitydetector.h:69
Private Attributes
| Return | Name | Description |
|---|---|---|
VoiceActivityDetectorConfig | _config | |
uint64_t | _sequence | |
uint64_t | _seen | |
uint64_t | _emitted | |
int64_t | _lastUpdateUsec | |
int64_t | _lastBelowThresholdUsec | |
bool | _active | |
float | _lastLevel | |
float | _lastPeak |
_config
VoiceActivityDetectorConfig _configDefined in src/speech/include/icy/speech/voiceactivitydetector.h:79
_sequence
uint64_t _sequence = 0Defined in src/speech/include/icy/speech/voiceactivitydetector.h:80
_seen
uint64_t _seen = 0Defined in src/speech/include/icy/speech/voiceactivitydetector.h:81
_emitted
uint64_t _emitted = 0Defined in src/speech/include/icy/speech/voiceactivitydetector.h:82
_lastUpdateUsec
int64_t _lastUpdateUsec = 0Defined in src/speech/include/icy/speech/voiceactivitydetector.h:83
_lastBelowThresholdUsec
int64_t _lastBelowThresholdUsec = 0Defined in src/speech/include/icy/speech/voiceactivitydetector.h:84
_active
bool _active = falseDefined in src/speech/include/icy/speech/voiceactivitydetector.h:85
_lastLevel
float _lastLevel = 0.0fDefined in src/speech/include/icy/speech/voiceactivitydetector.h:86
_lastPeak
float _lastPeak = 0.0fDefined in src/speech/include/icy/speech/voiceactivitydetector.h:87
Private Methods
measure
const
Levels measure(const av::PlanarAudioPacket & packet) constDefined in src/speech/include/icy/speech/voiceactivitydetector.h:73
emitEvent
void emitEvent(const char * type, const av::PlanarAudioPacket & packet, const Levels & levels, bool active)Defined in src/speech/include/icy/speech/voiceactivitydetector.h:74
Private Static Methods
| Return | Name | Description |
|---|---|---|
VoiceActivityDetectorConfig | sanitize static |
sanitize
static
static VoiceActivityDetectorConfig sanitize(VoiceActivityDetectorConfig config)Defined in src/speech/include/icy/speech/voiceactivitydetector.h:72
