|
||||||||||
| 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 java.lang.String |
BOOKMARK
|
static java.lang.String |
SPEECH_END
|
static java.lang.String |
SPEECH_START
|
static java.lang.String |
VISEME
|
static java.lang.String |
WORD_BOUNDARY
|
| Method Summary | |
|---|---|
java.lang.Integer |
getCurrentData()
Returns event data (usually phone or viseme id) associated with the start of the event. |
java.lang.Integer |
getDuration()
Returns the duration of the event in milliseconds. |
java.lang.String |
getEventType()
Returns the name of the event of this event. |
java.lang.Integer |
getNextData()
Returns event data (usually phone or viseme id) associated with the end of the event. |
java.lang.Long |
getStreamNumber()
Returns the stream number for tts output the event originates from. |
java.lang.String |
getStringData()
Returns any String data associated with the event (used for SAPI bookmark events). |
java.lang.Integer |
getTextLength()
Returns the number of characters the event covers. |
java.lang.Integer |
getTextPosition()
Returns the position of the speech request the event begins at. |
| Field Detail |
|---|
static final java.lang.String SPEECH_START
static final java.lang.String SPEECH_END
static final java.lang.String VISEME
static final java.lang.String WORD_BOUNDARY
static final java.lang.String BOOKMARK
| Method Detail |
|---|
java.lang.String getEventType()
java.lang.Long getStreamNumber()
java.lang.Integer getTextPosition()
java.lang.Integer getTextLength()
java.lang.Integer getCurrentData()
java.lang.Integer getNextData()
java.lang.String getStringData()
java.lang.Integer getDuration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||