close method
Release the microphone, the pipeline, and the event stream.
Implementation
Future<void> close() async {
if (_closed) return;
_closed = true;
await _subscription?.cancel();
_subscription = null;
await _driver?.stop();
_driver = null;
await _tts.stop();
DartBridge.voiceAgent.cleanup();
await _events.close();
}