com.speech4j.speech
Class TTSNotifySink

java.lang.Object
  |
  +--com.speech4j.speech.NativeObject
        |
        +--com.speech4j.speech.TTSNotifySink
Direct Known Subclasses:
SpeechWaiter

public abstract class TTSNotifySink
extends NativeObject

Represents INotifySink.

Version:
1.2
Author:
Pavel Vlasov

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

ATTRIB

public static final byte ATTRIB
Flag enabling attribChanged event.

See Also:
Constant Field Values

START

public static final byte START
Flag enabling audioStart event.

See Also:
Constant Field Values

STOP

public static final byte STOP
Flag enabling audioStop event.

See Also:
Constant Field Values

VISUAL

public static final byte VISUAL
Flag enabling visual event.

See Also:
Constant Field Values
Constructor Detail

TTSNotifySink

protected TTSNotifySink(byte flags)
Constructor.

Parameters:
flags - Specifies events the object wants to receive.
Method Detail

attribChanged

protected void attribChanged(int attribute)
Override this method to respond to attribChanged event

Parameters:
attribute - Attrubute changed.

audioStart

protected void audioStart(long timeStamp)
Override this method to respond to audioStart event

Parameters:
timeStamp - Time stamp

audioStop

protected void audioStop(long timeStamp)
Override this method to respond to audioStop event

Parameters:
timeStamp - Time stamp

visual

protected void visual(long timeStamp,
                      char phoneme,
                      char enginePhoneme,
                      int hints,
                      TTSMouth ttsMouth)
Override this method to respond to visual event

Parameters:
timeStamp - Time stamp
phoneme - Phoneme
enginePhoneme - Engine phoneme
hints - Kind of statement - question, exclamation, ...
ttsMouth - TTSMouth object

onDestroy

protected void onDestroy()
Override this method to respond to destruction of the native object.



Copyright © 2003 Pavel Vlasov. All Rights Reserved.