SimpleEnergyVAD constructor

SimpleEnergyVAD({
  1. int sampleRate = 16000,
  2. double frameLength = 0.1,
  3. double energyThreshold = 0.005,
})

Initialize the VAD with specified parameters

Implementation

SimpleEnergyVAD({
  this.sampleRate = 16000,
  double frameLength = 0.1,
  this.energyThreshold = 0.005,
}) : frameLengthSamples = (frameLength * sampleRate).toInt() {
  _logger.info(
    'SimpleEnergyVAD initialized - sampleRate: $sampleRate, frameLength: $frameLengthSamples samples, threshold: $energyThreshold',
  );
}