/// <summary>Create new VoiceDetectorCalibration instance.</summary>
 /// <param name="voiceDetector">Voice Detector to calibrate.</param>
 /// <param name="levelMeter">Level Meter to look at for calibration.</param>
 /// <param name="samplingRate">Sampling rate of the audio signal (in Hz).</param>
 /// <param name="numChannels">Number of channels in the audio signal.</param>
 public VoiceDetectorCalibration(IVoiceDetector voiceDetector, ILevelMeter levelMeter, int samplingRate, int channels)
 {
     this.valuesPerSec  = samplingRate * channels;
     this.voiceDetector = voiceDetector;
     this.levelMeter    = levelMeter;
 }
Example #2
0
 public VoiceDetectorCalibration(IVoiceDetector voiceDetector, ILevelMeter levelMeter, int samplesPerSec)
 {
     this.samplesPerSec = samplesPerSec;
     this.voiceDetector = voiceDetector;
     this.levelMeter    = levelMeter;
 }
Example #3
0
            }                                                // Dummy constructor

            public VoiceDetectorCalibration(IVoiceDetector voiceDetector, ILevelMeter levelMeter, int samplingRate, int channels)
            {
            }