|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpeechEvent
Defines a common interface for several types of Speech events. Some examples of events are word start and end events, or phoneme events.
Field Summary | |
---|---|
static String |
BOOKMARK
|
static String |
SPEECH_END
|
static String |
SPEECH_START
|
static String |
VISEME
|
static String |
WORD_BOUNDARY
|
Method Summary | |
---|---|
Integer |
getCurrentData()
Returns event data (usually phone or viseme id) associated with the start of the event. |
Integer |
getDuration()
Returns the duration of the event in milliseconds. |
String |
getEventType()
Returns the name of the event of this event. |
Integer |
getNextData()
Returns event data (usually phone or viseme id) associated with the end of the event. |
Long |
getStreamNumber()
Returns the stream number for tts output the event originates from. |
String |
getStringData()
Returns any String data associated with the event (used for SAPI bookmark events). |
Integer |
getTextLength()
Returns the number of characters the event covers. |
Integer |
getTextPosition()
Returns the position of the speech request the event begins at. |
Field Detail |
---|
static final String SPEECH_START
static final String SPEECH_END
static final String VISEME
static final String WORD_BOUNDARY
static final String BOOKMARK
Method Detail |
---|
String getEventType()
Long getStreamNumber()
Integer getTextPosition()
Integer getTextLength()
Integer getCurrentData()
Integer getNextData()
String getStringData()
Integer getDuration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |