com.iSpeech
Interface SpeechSynthesis.SpeechSynthesisEvent

Enclosing class:
SpeechSynthesis

public static interface SpeechSynthesis.SpeechSynthesisEvent

Used to notify SpeechSynthesis events.


Field Summary
static int PLAY_FAILURE
          The media failed to play.
static int PLAY_STOPPED
          The media was stopped either by calling the SpeechSynthesis.stop method, or interrupted by another media event.
static int PLAY_SUCCESSFUL
          The media was played successfully to the end of the source file.
 
Method Summary
 void stateChanged(int event, java.lang.Exception exception)
          Used to notify when SpeechSynthesis event changes.
 

Field Detail

PLAY_SUCCESSFUL

static final int PLAY_SUCCESSFUL
The media was played successfully to the end of the source file.

See Also:
Constant Field Values

PLAY_STOPPED

static final int PLAY_STOPPED
The media was stopped either by calling the SpeechSynthesis.stop method, or interrupted by another media event.

See Also:
Constant Field Values

PLAY_FAILURE

static final int PLAY_FAILURE
The media failed to play.

See Also:
Constant Field Values
Method Detail

stateChanged

void stateChanged(int event,
                  java.lang.Exception exception)
Used to notify when SpeechSynthesis event changes.

Parameters:
event - PLAY_SUCCESSFUL, PLAY_STOPPED, or PLAY_FAILURE
exception - Contains exception information or null if none is available