Photon C++ Client API
5.0.7.3
|
Simple voice activity detector triggered by signal level. More...
Public Member Functions | |
VoiceDetector (int samplingRate, int numChannels) | |
virtual Buffer< T > | process (Buffer< T > buf) |
Process a frame of audio data. More... | |
virtual bool | getOn (void) const |
If true, voice detection enabled. More... | |
virtual void | setOn (bool) |
virtual float | getThreshold (void) const |
Voice detected as soon as signal level exceeds threshold. More... | |
virtual void | setThreshold (float) |
virtual bool | getDetected (void) const |
If true, voice detected. More... | |
virtual int | getDetectedTime (void) const |
Last time when switched to detected state. More... | |
virtual void | setOnDetected (void(*pCallback)(void)) |
Called when switched to detected state. More... | |
virtual int | getActivityDelayMs (void) const |
Keep detected state during this time after signal level dropped below threshold. More... | |
virtual void | setActivityDelayMs (int) |
Public Member Functions inherited from ToStringDefaultImplementation | |
virtual JString & | toString (JString &retStr, bool withTypes=false) const |
virtual JString & | toString (JString &retStr, bool withTypes=false) const=0 |
JString | toString (bool withTypes=false) const |
Public Member Functions inherited from ToString | |
virtual | ~ToString (void) |
virtual JString | typeToString (void) const |
JString | toString (bool withTypes=false) const |
Simple voice activity detector triggered by signal level.
Process a frame of audio data.
buf | Buffer containing input audio data |
Implements IProcessor< T >.
|
virtual |
If true, voice detection enabled.
Implements IVoiceDetector.
|
virtual |
Voice detected as soon as signal level exceeds threshold.
Implements IVoiceDetector.
|
virtual |
If true, voice detected.
Implements IVoiceDetector.
|
virtual |
Last time when switched to detected state.
Implements IVoiceDetector.
|
virtual |
Called when switched to detected state.
Implements IVoiceDetector.
|
virtual |
Keep detected state during this time after signal level dropped below threshold.
Implements IVoiceDetector.