Photon Voice
v2.7
|
AudioUtil.VoiceLevelDetectCalibrate< T > Class Template Reference
Utility Audio Processor Voice Detection Calibration. More...
Inherits IProcessor< T >.
Public Member Functions | |
VoiceLevelDetectCalibrate (int samplingRate, int channels) | |
Create new VoiceLevelDetectCalibrate instance More... | |
void | Calibrate (int durationMs) |
Start calibration More... | |
T[] | Process (T[] buf) |
Process a frame of audio data. More... | |
void | Dispose () |
Properties | |
ILevelMeter | LevelMeter [get] |
The LevelMeter in use. More... | |
IVoiceDetector | VoiceDetector [get] |
The VoiceDetector in use More... | |
bool | IsCalibrating [get] |
Detailed Description
Utility Audio Processor Voice Detection Calibration.
Encapsulates level meter, voice detector and voice detector calibrator in single instance.
Constructor & Destructor Documentation
VoiceLevelDetectCalibrate | ( | int | samplingRate, |
int | channels | ||
) |
Create new VoiceLevelDetectCalibrate instance
- Parameters
-
samplingRate Sampling rate of the audio signal (in Hz). numChannels Number of channels in the audio signal.
Member Function Documentation
void Calibrate | ( | int | durationMs | ) |
Start calibration
- Parameters
-
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.
T [] Process | ( | T[] | buf | ) |
Process a frame of audio data.
- Parameters
-
buf Buffer containing input audio data
- Returns
- Buffer containing output audio data
Implements IProcessor< T >.
Property Documentation
The LevelMeter in use.
The VoiceDetector in use