Cancel a recognition request.
#include "asr/asr.h"
int asr_cancel()
The asr_cancel() function invokes the stop() callback function defined in the recognizer interface, asr_recognizer_if, and sets the hold count to 0. The recognizer stops audio acquisition and stops processing results.
0 Success.
-1 An error occurred; errno is set.