
Public Member Functions | |
| virtual void | setListener (RecognizerListenerProxy &listener, ReturnCode::Type &returnCode)=0 |
| virtual GrammarProxy | createGrammar (const char *value, GrammarListenerProxy &listener, ReturnCode::Type &returnCode)=0 |
| virtual void | recognize (AudioStreamProxy &audio, GrammarProxy *grammars, ARRAY_LIMIT grammarCount, ReturnCode::Type &returnCode)=0 |
| virtual void | recognize (AudioStreamProxy &audio, GrammarProxy &grammar, ReturnCode::Type &returnCode)=0 |
| virtual void | stop (ReturnCode::Type &returnCode)=0 |
| virtual void | setParameters (const char **keys, const char **values, ARRAY_LIMIT count, ReturnCode::Type &returnCode)=0 |
| virtual void | getParameters (const char **keys, ARRAY_LIMIT count, ReturnCode::Type &returnCode)=0 |
Protected Member Functions | |
| Recognizer () | |
| virtual | ~Recognizer () |
Friends | |
| class | RecognizerProxy |
| android.speech.recognition.Recognizer.Recognizer | ( | ) | [protected] |
Prevent construction.
| virtual android.speech.recognition.Recognizer.~Recognizer | ( | ) | [protected, virtual] |
Prevent destruction.
| virtual void android.speech.recognition.Recognizer.setListener | ( | RecognizerListenerProxy & | listener, | |
| ReturnCode::Type & | returnCode | |||
| ) | [pure virtual] |
Sets the recognizer listener.
| listener | recognizer listener | |
| returnCode | returns SUCCESS unless a fatal error occurs |
| virtual GrammarProxy android.speech.recognition.Recognizer.createGrammar | ( | const char * | value, | |
| GrammarListenerProxy & | listener, | |||
| ReturnCode::Type & | returnCode | |||
| ) | [pure virtual] |
Creates a grammar.
| value | the contents of the grammar | |
| listener | the grammar listener | |
| returnCode | ILLEGAL_ARGUMENT if value is null |
| virtual void android.speech.recognition.Recognizer.recognize | ( | AudioStreamProxy & | audio, | |
| GrammarProxy * | grammars, | |||
| ARRAY_LIMIT | grammarCount, | |||
| ReturnCode::Type & | returnCode | |||
| ) | [pure virtual] |
Begins speech recognition.
| audio | the audio to recognizer | |
| grammars | a collection of grammar sets to recognize against | |
| grammarCount | the number of grammar sets | |
| returnCode | ILLEGAL_ARGUMENT if audio is null or is being used by another component, or if grammars is null or if grammarCount < 1. NOT_SUPPORTED if the recognizer does not support the number of grammars specified. |
| virtual void android.speech.recognition.Recognizer.recognize | ( | AudioStreamProxy & | audio, | |
| GrammarProxy & | grammar, | |||
| ReturnCode::Type & | returnCode | |||
| ) | [pure virtual] |
This convenience method is equivilent to invoking recognize(audio, grammars, grammarCount, returnCode) with a single grammar.
| audio | the audio to recognizer | |
| grammar | a grammar to recognize against | |
| returnCode | ILLEGAL_ARGUMENT if audio is null or is being used by another component, or if grammar is null. |
| virtual void android.speech.recognition.Recognizer.stop | ( | ReturnCode::Type & | returnCode | ) | [pure virtual] |
Terminates a recognition if one is in-progress.
| returnCode | the return code |
| virtual void android.speech.recognition.Recognizer.setParameters | ( | const char ** | keys, | |
| const char ** | values, | |||
| ARRAY_LIMIT | count, | |||
| ReturnCode::Type & | returnCode | |||
| ) | [pure virtual] |
Set parameter(s).
| keys | parameter keys | |
| values | parameter values | |
| count | the number of parameters | |
| returnCode | the return code |
| virtual void android.speech.recognition.Recognizer.getParameters | ( | const char ** | keys, | |
| ARRAY_LIMIT | count, | |||
| ReturnCode::Type & | returnCode | |||
| ) | [pure virtual] |
Get one or more parameter(s).
| keys | parameter keys | |
| count | the number of parameters | |
| returnCode | the return code |
1.5.3