Photon C++ Client API
5.0.7.3
|
Utility Audio Processor Voice Detection Calibration. More...
Public Member Functions | |
VoiceLevelDetectCalibrate (int samplingRate, int channels) | |
Create new VoiceLevelDetectCalibrate instance More... | |
void | calibrate (int durationMs) |
Start calibration More... | |
ILevelMeter * | getLevelMeter (void) const |
The LevelMeter in use. More... | |
IVoiceDetector * | getDetector (void) const |
The VoiceDetector in use More... | |
virtual Buffer< T > | process (Buffer< T > buf) |
Process a frame of audio data. More... | |
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 |
Utility Audio Processor Voice Detection Calibration.
Encapsulates level meter, voice detector and voice detector calibrator in single instance.
VoiceLevelDetectCalibrate | ( | int | samplingRate, |
int | channels | ||
) |
Create new VoiceLevelDetectCalibrate instance
samplingRate | Sampling rate of the audio signal (in Hz). |
channels | Number of channels in the audio signal. |
void calibrate | ( | int | durationMs | ) |
Start calibration
durationMs | Duration of the calibration procedure (in milliseconds). |
This activates the Calibration process. It will reset the given LevelMeter's AccumAvgPeakAmp (accumulated average peak amplitude), and when the duration has passed, use it for the VoiceDetector's detection threshold.
ILevelMeter * getLevelMeter | ( | void | ) | const |
The LevelMeter in use.
IVoiceDetector * getDetector | ( | void | ) | const |
The VoiceDetector in use
Process a frame of audio data.
buf | Buffer containing input audio data |
Implements IProcessor< T >.