hmi.tts
Interface TTSCallback

All Known Implementing Classes:
DirectTTSUnit.MyTTSCallback

public interface TTSCallback

Callback interface that captures events in TTSGenerator.speak

Author:
Herwin

Method Summary
 void bookmarkCallback(String bookmark)
          Bookmark callback called whenever a bookmark <bookmark mark=&qout;name&qoute;> is reached
 void phonemeCallback(int phoneme, int duration, 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 nextVisime, boolean stress)
          Phoneme callback
 void wordBoundryCallback(int offset, int length)
          Wordboundry callback
 

Method Detail

wordBoundryCallback

void wordBoundryCallback(int offset,
                         int length)
Wordboundry callback

Parameters:
offset - offset, in characters of the string that is spoken
length - length, in characters, of the word

phonemeCallback

void phonemeCallback(int phoneme,
                     int duration,
                     int nextPhoneme,
                     boolean stress)
Phoneme callback

Parameters:
phoneme - phoneme number
duration - phoneme duration (in ms)
nextPhoneme - phoneme number of the next phoneme
stress - stressed?

bookmarkCallback

void bookmarkCallback(String bookmark)
Bookmark callback called whenever a bookmark <bookmark mark=&qout;name&qoute;> is reached

Parameters:
bookmark - name of the bookmark

visimeCallback

void visimeCallback(int visime,
                    int duration,
                    int nextVisime,
                    boolean stress)
Phoneme callback

Parameters:
duration - visime duration (in ms)
nextVisime - visime number of the next phoneme

sentenceBoundryCallback

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

stopCallback

boolean stopCallback()
Return true to cancel speaking

Returns:
true to cancel speaking, false otherwise