delete method

Future<void> delete()

Releases Rhino and audio resouces

Implementation

Future<void> delete() async {
  if (_voiceProcessor?.isRecording ?? false) {
    await _voiceProcessor!.stop();
  }
  _removeVoiceProcessorListener?.call();
  _removeErrorListener?.call();
  _rhino?.delete();
  _rhino = null;
}