stop method
void
stop()
Stop the voice session Matches iOS VoiceSessionHandle.stop()
Implementation
void stop() {
if (!_isRunning) return;
_isRunning = false;
_isProcessing = false;
// Stop audio capture and playback
unawaited(_audioCapture.stopRecording());
unawaited(_audioPlayback.stop());
_audioBuffer = Uint8List(0);
_isSpeechActive = false;
_lastSpeechTime = null;
_emit(const VoiceSessionStopped());
unawaited(_eventController.close());
_logger.info('Voice session stopped');
}