|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.speech4j.speech.NativeObject | +--com.speech4j.speech.TTSNotifySink
Represents INotifySink.
Field Summary | |
static byte |
ATTRIB
Flag enabling attribChanged event. |
static byte |
START
Flag enabling audioStart event. |
static byte |
STOP
Flag enabling audioStop event. |
static byte |
VISUAL
Flag enabling visual event. |
Constructor Summary | |
protected |
TTSNotifySink(byte flags)
Constructor. |
Method Summary | |
protected void |
attribChanged(int attribute)
Override this method to respond to attribChanged event |
protected void |
audioStart(long timeStamp)
Override this method to respond to audioStart event |
protected void |
audioStop(long timeStamp)
Override this method to respond to audioStop event |
protected void |
onDestroy()
Override this method to respond to destruction of the native object. |
protected void |
visual(long timeStamp,
char phoneme,
char enginePhoneme,
int hints,
TTSMouth ttsMouth)
Override this method to respond to visual event |
Methods inherited from class com.speech4j.speech.NativeObject |
bytes2String, cleanup, getObjID, processMessages, stopProcessingMessages, string2Bytes, testSpeech |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte ATTRIB
public static final byte START
public static final byte STOP
public static final byte VISUAL
Constructor Detail |
protected TTSNotifySink(byte flags)
flags
- Specifies events the object wants to receive.Method Detail |
protected void attribChanged(int attribute)
attribute
- Attrubute changed.protected void audioStart(long timeStamp)
timeStamp
- Time stampprotected void audioStop(long timeStamp)
timeStamp
- Time stampprotected void visual(long timeStamp, char phoneme, char enginePhoneme, int hints, TTSMouth ttsMouth)
timeStamp
- Time stampphoneme
- PhonemeenginePhoneme
- Engine phonemehints
- Kind of statement - question, exclamation, ...ttsMouth
- TTSMouth objectprotected void onDestroy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |