asr_step_e

The recognition step.

Synopsis:

#include <asr/types.h>
 
typedef enum asr_step_e{
      ASR_STEP_LOCALE_CHANGED   
      ASR_STEP_SESSION_OPENED   
      ASR_STEP_SESSION_ERROR   
      ASR_STEP_SESSION_CANCELED   
      ASR_STEP_PROMPT_STARTING   
      ASR_STEP_PROMPT_STOPPED   
      ASR_STEP_RECOGNITION_BEGIN   
      ASR_STEP_RECOGNITION_CONFIGURED   
      ASR_STEP_PRE_AUDIO_CAPTURE   
      ASR_STEP_PRE_SPEECH_SILENCE_TIMEOUT   
      ASR_STEP_POST_AUDIO_CAPTURE   
      ASR_STEP_LOCAL_QUERY_BEGIN   
      ASR_STEP_REMOTE_QUERY_BEGIN   
      ASR_STEP_QUERY_END   
      ASR_STEP_POSTING_RESULT   
      ASR_STEP_REPOSTING_RESULT   
      ASR_STEP_RECOGNIZED_SPEECH   
      ASR_STEP_UNRECOGNIZED_SPEECH   
      ASR_STEP_UNHANDLED_SPEECH   
      ASR_STEP_RECOGNIZED_SILENCE   
      ASR_STEP_TURN_COMPLETE   
      ASR_STEP_RECOGNITION_END   
      ASR_STEP_RECOGNITION_HELD   
      ASR_STEP_SESSION_CLOSED   
      ASR_STEP_SESSION_CLEANUP   
      ASR_STEP_TASK_COMPLETE   
      ASR_STEP_SESSION_ABORTED   
} asr_step_t;

Data:

ASR_STEP_LOCALE_CHANGED
The locale has changed and localized assets have been updated.
ASR_STEP_SESSION_OPENED
A speech session has been opened.
ASR_STEP_SESSION_ERROR
An unrecoverable error has occurred.

This step is be followed by ASR_STEP_SESSION_CLOSED.

ASR_STEP_SESSION_CANCELED
The user cancelled the recognition session.
ASR_STEP_PROMPT_STARTING
An audio prompt service has been requested.

The ASR state is prompting.

ASR_STEP_PROMPT_STOPPED
An audio prompt service has completed.

The ASR state is processing.

ASR_STEP_RECOGNITION_BEGIN
A recognition turn has started.
ASR_STEP_RECOGNITION_CONFIGURED
The recognition contexts, data, and configuration have been loaded.
ASR_STEP_PRE_AUDIO_CAPTURE
Audio capture is about to start (microphone will be turned on).

The ASR state is listening.

ASR_STEP_PRE_SPEECH_SILENCE_TIMEOUT
No speech was detected within the silence timeout period.
ASR_STEP_POST_AUDIO_CAPTURE
The microphone has been turned off (either end of speech was detected or asra_stop() was called).

The ASR state is processing.

ASR_STEP_LOCAL_QUERY_BEGIN
The local ASR service has started processing the captured audio.
ASR_STEP_REMOTE_QUERY_BEGIN
A remote ASR service has started processing the captured audio (expect latency).
ASR_STEP_QUERY_END
The ASR service has returned results.
ASR_STEP_POSTING_RESULT
The recognition result has been generated and is about to be delivered.
ASR_STEP_REPOSTING_RESULT
The recognition result was selected by the wrong module.
ASR_STEP_RECOGNIZED_SPEECH
The module has processed the results.
ASR_STEP_UNRECOGNIZED_SPEECH
The ASR service didn't recognize any speech in the utterance.
ASR_STEP_UNHANDLED_SPEECH
No module selected any of the recognition results.
ASR_STEP_RECOGNIZED_SILENCE
There was no audio captured or the audio was too quiet.
ASR_STEP_TURN_COMPLETE
Result processing is complete.
ASR_STEP_RECOGNITION_END
All module select and result callbacks have completed.
ASR_STEP_RECOGNITION_HELD
The current speech session has been held, to be ended or resumed later.
ASR_STEP_SESSION_CLOSED
The speech session has ended.
ASR_STEP_SESSION_CLEANUP
ASR is cleaning up the speech session.

The ASR state is idle.

ASR_STEP_TASK_COMPLETE
The user's task has been accomplished (e.g., media playback has begun, phone call has been placed, etc.)
ASR_STEP_SESSION_ABORTED
There was an external cancellation of the recognition session (asr_stop() was called due to a PPS strobe::off message.)

Library:

libasr

Description:

This enumeration represents the steps in the recognition process flow. Some of these steps change the state of ASR, as recorded in the state attribute of the /pps/services/asr/control PPS object. This state change is noted with the enumeration values where applicable.