pause method

void pause()

Pause VAD processing

Implementation

void pause() {
  if (_isPaused) return;
  _isPaused = true;
  _logger.info('⏸️ VAD paused');

  if (_isCurrentlySpeaking) {
    _isCurrentlySpeaking = false;
    onSpeechActivity?.call(SpeechActivityEvent.ended);
  }

  _recentEnergyValues.clear();
  _consecutiveSilentFrames = 0;
  _consecutiveVoiceFrames = 0;
}