stop method
Implementation
Future<void> stop() async {
await _recorder.stop();
if (_hasSpeech) {
_saveAsWav().then((_) {
_recordingListener?.onComplete(_fileRecord!);
}).catchError((error, stackTrace) {
_recordingListener?.onFail(S.current.message_error_evaluate_process);
});
} else {
_recordingListener?.onFail(S.current.message_no_detect_speech);
}
}