示例#1
0
 /// <summary>Start calibration</summary>
 /// <param name="durationMs">Duration of the calibration procedure (in milliseconds).</param>
 /// <param name="onCalibrated">Called when calibration is complete. Parameter is new threshold value.</param>
 /// 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.
 public void Calibrate(int durationMs, Action <float> onCalibrated = null)
 {
     calibration.Calibrate(durationMs, onCalibrated);
 }
示例#2
0
 /// <summary>Start calibration</summary>
 /// <param name="durationMs">Duration of the calibration procedure (in milliseconds).</param>
 /// 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.
 public void Calibrate(int durationMs)
 {
     calibration.Calibrate(durationMs);
 }