|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TTSCallback
Callback interface that captures events in TTSGenerator.speak
| 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 |
|---|
void wordBoundryCallback(int offset,
int length)
offset - offset, in characters of the string that is spokenlength - length, in characters, of the word
void phonemeCallback(int phoneme,
int duration,
int nextPhoneme,
boolean stress)
phoneme - phoneme numberduration - phoneme duration (in ms)nextPhoneme - phoneme number of the next phonemestress - stressed?void bookmarkCallback(String bookmark)
bookmark - name of the bookmark
void visimeCallback(int visime,
int duration,
int nextVisime,
boolean stress)
duration - visime duration (in ms)nextVisime - visime number of the next phoneme
void sentenceBoundryCallback(int offset,
int length)
offset - offset, in characters of the string that is spokenlength - length of the sentence, in charactersboolean stopCallback()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||