com.iSpeech
Interface SpeechRecognizer.SpeechRecognizerEvent

Enclosing class:
SpeechRecognizer

public static interface SpeechRecognizer.SpeechRecognizerEvent

Used to notify when the recording state changes


Field Summary
static int RECORDING_CANCELED
          Fired when audio recording has been canceled.
static int RECORDING_COMMITTED
          Fired when audio recording has been committed.
static int RECORDING_COMPLETE
          Fired when recording timer expires or the user dismisses the dialog.
static int RECORDING_ERROR
          Fired when an error occurred.
 
Method Summary
 void stateChanged(int event, int freeFormValue, java.lang.Exception lastException)
          Used to notify when the audio recorder state changes.
 

Field Detail

RECORDING_COMPLETE

static final int RECORDING_COMPLETE
Fired when recording timer expires or the user dismisses the dialog. You should call @StopRecord after you receive this event.

See Also:
Constant Field Values

RECORDING_COMMITTED

static final int RECORDING_COMMITTED
Fired when audio recording has been committed. No new audio will be recorded after you receive this event.

See Also:
Constant Field Values

RECORDING_CANCELED

static final int RECORDING_CANCELED
Fired when audio recording has been canceled. A user can cancel recording by pressing the red cancel button.

See Also:
Constant Field Values

RECORDING_ERROR

static final int RECORDING_ERROR
Fired when an error occurred. lastException will contain error details (if available)

See Also:
Constant Field Values
Method Detail

stateChanged

void stateChanged(int event,
                  int freeFormValue,
                  java.lang.Exception lastException)
Used to notify when the audio recorder state changes.

Parameters:
event - One of RECORDING_COMPLETE, RECORDING_COMMITTED or RECORDING_CANCELED
freeFormValue - The value provided to the SpeechRecognizer.setFreeForm method.
lastException - The last exception that occurred (if any)