Public Member Functions | |
virtual void | configure (const char *config, ReturnCode::Type &returnCode)=0 |
virtual void | resetAcousticState (ReturnCode::Type &returnCode)=0 |
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 |
Static Public Member Functions | |
static UAPI_EXPORT EmbeddedRecognizerProxy | getInstance (ReturnCode::Type &returnCode) |
Protected Member Functions | |
UAPI_EXPORT | EmbeddedRecognizer () |
virtual UAPI_EXPORT | ~EmbeddedRecognizer () |
Friends | |
class | impl::RedirectToLibrary |
class | EmbeddedRecognizerProxy |
class | RecognizerProxy |
UAPI_EXPORT android.speech.recognition.EmbeddedRecognizer.EmbeddedRecognizer | ( | ) | [protected] |
Prevent construction.
virtual UAPI_EXPORT android.speech.recognition.EmbeddedRecognizer.~EmbeddedRecognizer | ( | ) | [protected, virtual] |
Prevent destruction.
static UAPI_EXPORT EmbeddedRecognizerProxy android.speech.recognition.EmbeddedRecognizer.getInstance | ( | ReturnCode::Type & | returnCode | ) | [static] |
Creates a new embedded recognizer.
returnCode | the return code |
virtual void android.speech.recognition.EmbeddedRecognizer.configure | ( | const char * | config, | |
ReturnCode::Type & | returnCode | |||
) | [pure virtual] |
Configures the embedded recognizer.
config | recognizer configuration file | |
returnCode | ILLEGAL_ARGUMENT if config is null. OPEN_ERROR, or READ_ERROR if the recognizer configuration, acoustic model, or vocabulary files could not be opened or read. |
virtual void android.speech.recognition.EmbeddedRecognizer.resetAcousticState | ( | ReturnCode::Type & | returnCode | ) | [pure virtual] |
The recognition accuracy improves over time as the recognizer adapts to the surrounding environment. This method enables developers to reset the adaptation when the environment is known to have changed.
returnCode | the return code |
virtual void android.speech.recognition.Recognizer.setListener | ( | RecognizerListenerProxy & | listener, | |
ReturnCode::Type & | returnCode | |||
) | [pure virtual, inherited] |
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, inherited] |
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, inherited] |
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, inherited] |
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, inherited] |
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, inherited] |
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, inherited] |
Get one or more parameter(s).
keys | parameter keys | |
count | the number of parameters | |
returnCode | the return code |