hmi.elckerlyc.speechengine
Class DirectTTSUnit.MyTTSCallback

java.lang.Object
  extended by hmi.elckerlyc.speechengine.DirectTTSUnit.MyTTSCallback
All Implemented Interfaces:
TTSCallback
Enclosing class:
DirectTTSUnit

protected class DirectTTSUnit.MyTTSCallback
extends Object
implements TTSCallback


Constructor Summary
protected DirectTTSUnit.MyTTSCallback()
           
 
Method Summary
 void bookmarkCallback(String bookmark)
          Bookmark callback called whenever a bookmark <bookmark mark=&qout;name&qoute;> is reached
 void phonemeCallback(int phoneme, int dur, int nextPhoneme, boolean stress)
          Phoneme callback
 void sentenceBoundryCallback(int offset, int length)
           
 boolean stopCallback()
          Return true to cancel speaking
 void visimeCallback(int visime, int duration, int nextVis, boolean stress)
          Phoneme callback
 void wordBoundryCallback(int offset, int length)
          Wordboundry callback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectTTSUnit.MyTTSCallback

protected DirectTTSUnit.MyTTSCallback()
Method Detail

bookmarkCallback

public void bookmarkCallback(String bookmark)
Description copied from interface: TTSCallback
Bookmark callback called whenever a bookmark <bookmark mark=&qout;name&qoute;> is reached

Specified by:
bookmarkCallback in interface TTSCallback
Parameters:
bookmark - name of the bookmark

phonemeCallback

public void phonemeCallback(int phoneme,
                            int dur,
                            int nextPhoneme,
                            boolean stress)
Description copied from interface: TTSCallback
Phoneme callback

Specified by:
phonemeCallback in interface TTSCallback
Parameters:
phoneme - phoneme number
dur - phoneme duration (in ms)
nextPhoneme - phoneme number of the next phoneme
stress - stressed?

sentenceBoundryCallback

public void sentenceBoundryCallback(int offset,
                                    int length)
Specified by:
sentenceBoundryCallback in interface TTSCallback
Parameters:
offset - offset, in characters of the string that is spoken
length - length of the sentence, in characters

stopCallback

public boolean stopCallback()
Description copied from interface: TTSCallback
Return true to cancel speaking

Specified by:
stopCallback in interface TTSCallback
Returns:
true to cancel speaking, false otherwise

visimeCallback

public void visimeCallback(int visime,
                           int duration,
                           int nextVis,
                           boolean stress)
Description copied from interface: TTSCallback
Phoneme callback

Specified by:
visimeCallback in interface TTSCallback
duration - visime duration (in ms)
nextVis - visime number of the next phoneme

wordBoundryCallback

public void wordBoundryCallback(int offset,
                                int length)
Description copied from interface: TTSCallback
Wordboundry callback

Specified by:
wordBoundryCallback in interface TTSCallback
Parameters:
offset - offset, in characters of the string that is spoken
length - length, in characters, of the word