|
|||||||||||
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 | +--com.speech4j.speech.SpeechWaiter
This object waits for TTSModes it has been registered with to finish speaking.
Field Summary |
Fields inherited from class com.speech4j.speech.TTSNotifySink |
ATTRIB, START, STOP, VISUAL |
Constructor Summary | |
SpeechWaiter()
Constructor. |
Method Summary | |
protected void |
audioStart(long timeStamp)
Increments counter |
protected void |
audioStop(long timeStamp)
Decrements counter |
void |
waitSpeech()
Method waits for audioStop event for all TTS modes it have been registered with and then returns. |
Methods inherited from class com.speech4j.speech.TTSNotifySink |
attribChanged, onDestroy, visual |
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 |
Constructor Detail |
public SpeechWaiter()
Method Detail |
protected void audioStart(long timeStamp)
audioStart
in class TTSNotifySink
timeStamp
- Time stampprotected void audioStop(long timeStamp)
audioStop
in class TTSNotifySink
timeStamp
- Time stamppublic void waitSpeech()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |