Photon C++ Client API
5.0.7.3
|
Calibration Utility for Voice Detector More...


Public Member Functions | |
| VoiceDetectorCalibration (IVoiceDetector *pVoiceDetector, ILevelMeter *pLevelMeter, int samplingRate, int channels) | |
| Create new VoiceDetectorCalibration instance. More... | |
| bool | isCalibrating (void) const |
| void | calibrate (int durationMs) |
| Start calibration. 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 |
Calibration Utility for Voice Detector
. Using this audio processor, you can calibrate the Threshold property of IVoiceDetector.
| VoiceDetectorCalibration | ( | IVoiceDetector * | pVoiceDetector, |
| ILevelMeter * | pLevelMeter, | ||
| int | samplingRate, | ||
| int | channels | ||
| ) |
Create new VoiceDetectorCalibration instance.
| pVoiceDetector | Voice Detector to calibrate. |
| pLevelMeter | Level Meter to look at for calibration. |
| 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.
Process a frame of audio data.
| buf | Buffer containing input audio data |
Implements IProcessor< T >.