stop method

void stop()

Stop voice activity detection

Implementation

void stop() {
  if (!_isActive) return;

  if (_isCurrentlySpeaking) {
    _isCurrentlySpeaking = false;
    _logger.info('🎙️ VAD: SPEECH ENDED (stopped)');
    onSpeechActivity?.call(SpeechActivityEvent.ended);
  }

  _isActive = false;
  _consecutiveSilentFrames = 0;
  _consecutiveVoiceFrames = 0;

  _logger.info('SimpleEnergyVAD stopped');
}