AI2 Component  (Version nb184) Interface Reference
Inheritance diagram for

Public Member Functions

void onPartialResult (String text)
void onResult (String text)
void onError (int errorCode)

Detailed Description

This interface is used to declare functions associated with results and errors of SpeechRecognizer, used in both ServiceBasedSpeechRecognizer and IntentBasedSpeechRecognizer

Definition at line 12 of file

Member Function Documentation

◆ onError()

void ( int  errorCode)

In case we need to report any errors, such as the activity or service dying for an unexpected reason

Implemented in

◆ onPartialResult()

void ( String  text)

For the service based approach in which we can report partial results to the blocks

Implemented in

◆ onResult()

void ( String  text)

For the final result, used by both approaches

Implemented in

The documentation for this interface was generated from the following file: