com.speech4j.speech
Class SpeechWaiter

java.lang.Object
  |
  +--com.speech4j.speech.NativeObject
        |
        +--com.speech4j.speech.TTSNotifySink
              |
              +--com.speech4j.speech.SpeechWaiter

public class SpeechWaiter
extends TTSNotifySink

This object waits for TTSModes it has been registered with to finish speaking.

Version:
1.1
Author:
Pavel Vlasov

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

SpeechWaiter

public SpeechWaiter()
Constructor.

Method Detail

audioStart

protected void audioStart(long timeStamp)
Increments counter

Overrides:
audioStart in class TTSNotifySink
Parameters:
timeStamp - Time stamp

audioStop

protected void audioStop(long timeStamp)
Decrements counter

Overrides:
audioStop in class TTSNotifySink
Parameters:
timeStamp - Time stamp

waitSpeech

public void waitSpeech()
Method waits for audioStop event for all TTS modes it have been registered with and then returns.



Copyright © 2003 Pavel Vlasov. All Rights Reserved.