|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.speech.recognition.AbstractRecognizerListener
public abstract class AbstractRecognizerListener
A RecognizerListener whose methods are empty. This class exists as convenience for creating listener objects.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface android.speech.recognition.RecognizerListener |
|---|
RecognizerListener.FailureReason |
| Constructor Summary | |
|---|---|
AbstractRecognizerListener()
|
|
| 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 |
onParametersGet(Hashtable<String,String> parameters)
This method is called when the parameters specified in getParameters have successfully been retrieved. |
void |
onParametersGetError(Vector<String> parameters,
Exception e)
Invoked if retrieving parameters has failed. |
void |
onParametersSet(Hashtable<String,String> parameters)
This method is called when the parameters specified in setParameters have successfully been set. |
void |
onParametersSetError(Hashtable<String,String> parameters,
Exception e)
Invoked if setting parameters has failed. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRecognizerListener()
| Method Detail |
|---|
public void onBeginningOfSpeech()
RecognizerListener
onBeginningOfSpeech in interface RecognizerListenerpublic void onEndOfSpeech()
RecognizerListener
onEndOfSpeech in interface RecognizerListenerpublic void onRecognitionSuccess(RecognitionResult result)
RecognizerListener
onRecognitionSuccess in interface RecognizerListenerresult - 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.public void onRecognitionFailure(RecognizerListener.FailureReason reason)
RecognizerListener
onRecognitionFailure in interface RecognizerListenerreason - the failure reasonpublic void onError(Exception e)
RecognizerListener
onError in interface RecognizerListenere - the cause of the failure
public void onParametersGetError(Vector<String> parameters,
Exception e)
ParametersListener
onParametersGetError in interface ParametersListenerparameters - the parameters that could not be retrievede - the failure reason
public void onParametersSetError(Hashtable<String,String> parameters,
Exception e)
ParametersListener
onParametersSetError in interface ParametersListenerparameters - the parameters that could not be sete - the failure reasonpublic void onParametersGet(Hashtable<String,String> parameters)
ParametersListener
onParametersGet in interface ParametersListenerparameters - the retrieved parameterspublic void onParametersSet(Hashtable<String,String> parameters)
ParametersListener
onParametersSet in interface ParametersListenerparameters - the set parameterspublic void onStartOfSpeechTimeout()
RecognizerListener
onStartOfSpeechTimeout in interface RecognizerListenerpublic void onAcousticStateReset()
RecognizerListener
onAcousticStateReset in interface RecognizerListenerEmbeddedRecognizer.resetAcousticState()public void onStarted()
RecognizerListener
onStarted in interface RecognizerListenerpublic void onStopped()
RecognizerListener
onStopped in interface RecognizerListener
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||