The result action.
Synopsis:
#include <asr/types.h>
typedef enum result_action_e{
ASR_RECOGNITION_ABORT
ASR_RECOGNITION_CANCEL
ASR_RECOGNITION_REPOST
ASR_RECOGNITION_COMPLETE
ASR_RECOGNITION_CONTINUE
ASR_RECOGNITION_RESTART
ASR_RECOGNITION_REPEAT
ASR_RECOGNITION_UNKNOWN
ASR_RECOGNITION_HELD
ASR_RECOGNITION_HOLD
} asr_result_action_t;
Data:
- ASR_RECOGNITION_ABORT
- Stop the recognition turn as incomplete.
- ASR_RECOGNITION_CANCEL
- Stop the recognition turn and discard any pending results.
- ASR_RECOGNITION_REPOST
- Repost the current results.
This allows a conversation module to hand off to other conversation modules.
- ASR_RECOGNITION_COMPLETE
- The recognition is complete.
Stop the recognition turn if not in continuous mode. Values higher than this indicate a recognizer restart.
- ASR_RECOGNITION_CONTINUE
- Continue recognizing.
Incremental results are cached.
- ASR_RECOGNITION_RESTART
- Restart the recognition from the audio source (either get new audio data from the microphone or call asr_set_utterance() to get a new audio buffer).
- ASR_RECOGNITION_REPEAT
- Restart the recognition from previous recognition features (stored phonemes).
- ASR_RECOGNITION_UNKNOWN
- The module doesn't understand the command.
This might occur if there has been a context switch.
- ASR_RECOGNITION_HELD
- A recognition hold has blocked the processing of results.
- ASR_RECOGNITION_HOLD
- A recognition hold will be triggered, requiring a call to asr_release() or asr_stop().
Library:
libasr
Description:
This enumeration represents the actions that can be taken during the processing of recognition results.