|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RecognizerListener
Listens for recognizer events.
| Nested Class Summary | |
|---|---|
static class |
RecognizerListener.FailureReason
Recognition failure. |
| Method Summary | |
|---|---|
void |
onAcousticStateReset()
Invoked when the recognizer acoustic state is reset. |
void |
onBeginningOfSpeech()
Invoked if the recognizer detects the beginning of speech. |
void |
onEndOfSpeech()
Invoked if the recognizer detects the end of speech. |
void |
onError(Exception e)
Invoked when an unexpected error occurs. |
void |
onRecognitionFailure(RecognizerListener.FailureReason reason)
Invoked when a recognition failure occurs. |
void |
onRecognitionSuccess(RecognitionResult result)
Invoked when a recognition result is generated. |
void |
onStarted()
Invoked after recognition begins. |
void |
onStartOfSpeechTimeout()
Invoked if the recognizer does not detect speech within the configured timeout period. |
void |
onStopped()
Invoked when the recognizer stops (due to normal termination or an error). |
| Methods inherited from interface android.speech.recognition.ParametersListener |
|---|
onParametersGet, onParametersGetError, onParametersSet, onParametersSetError |
| Method Detail |
|---|
void onStarted()
void onBeginningOfSpeech()
void onEndOfSpeech()
void onStartOfSpeechTimeout()
void onAcousticStateReset()
EmbeddedRecognizer.resetAcousticState()void onRecognitionSuccess(RecognitionResult result)
result - the recognition result. The result object can not be
used outside of the scope of the onRecognitionSuccess() callback method.
To be able to do so, copy it's contents to an user-defined object.void onRecognitionFailure(RecognizerListener.FailureReason reason)
reason - the failure reasonvoid onError(Exception e)
e - the cause of the failurevoid onStopped()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||