|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.tts.AbstractTTSGenerator
public abstract class AbstractTTSGenerator
Abstract implementation for Text-To-Speech generators.
| Field Summary | |
|---|---|
protected Collection<Bookmark> |
bookmarks
|
protected TTSCallback |
callback
In the speechengine package of Herwin, this callback is replaced all the time for new speechunits, during setup as well as during speak() time. |
protected TTSCallback |
permanentCallback
This callback is supposed to be set only once (see also callback below) |
private int |
rate
|
protected Collection<Visime> |
visimes
|
private int |
volume
|
protected List<WordDescription> |
wordDescriptions
|
| Constructor Summary | |
|---|---|
AbstractTTSGenerator()
|
|
| Method Summary | |
|---|---|
abstract TimingInfo |
getBMLTiming(String s)
Get the timing of a BML speech behavior |
int |
getRate()
|
abstract TimingInfo |
getTiming(String text)
Gets the timing of the text, fills out visime, phoneme,bookmark and word lists |
abstract String[] |
getVoices()
Get the duration of the last spoken/timed text |
int |
getVolume()
|
void |
setCallback(TTSCallback cb)
Sets up the callbacks |
void |
setPermanentCallback(TTSCallback cb)
Sets up the permanent callback |
void |
setRate(int r)
|
abstract void |
setVoice(String speaker)
Sets the speaker |
void |
setVolume(int v)
|
abstract TimingInfo |
speak(String text)
|
abstract TimingInfo |
speakBML(String text)
Speaks out the BML sentence, does the apropiate callbacks, fills out visime, phoneme, bookmark and word lists |
abstract TimingInfo |
speakBMLToFile(String text,
String filename)
Generates a file containing the spoken BML sentence, does the apropiate callbacks, fills out visime, phoneme, bookmark and word lists. |
abstract TimingInfo |
speakToFile(String text,
String filename)
Generates a file containing the spoken sentence, does the apropiate callbacks, fills out visime, phoneme, bookmark and word lists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TTSCallback permanentCallback
protected TTSCallback callback
protected List<WordDescription> wordDescriptions
protected Collection<Bookmark> bookmarks
protected Collection<Visime> visimes
private int volume
private int rate
| Constructor Detail |
|---|
public AbstractTTSGenerator()
| Method Detail |
|---|
public void setCallback(TTSCallback cb)
cb - callback classpublic void setPermanentCallback(TTSCallback cb)
cb - callback classpublic abstract TimingInfo speak(String text)
public abstract TimingInfo speakBML(String text)
text - the text or script to speak
public abstract TimingInfo speakToFile(String text,
String filename)
throws IOException
text - the text or script to speak
FileNotFoundException
IOException
public abstract TimingInfo speakBMLToFile(String text,
String filename)
throws IOException
text - the text or script to speak
IOExceptionpublic abstract TimingInfo getTiming(String text)
text - the text or script to get the timing ofpublic abstract void setVoice(String speaker)
speaker - speaker namepublic abstract TimingInfo getBMLTiming(String s)
b - the bml speech behaviorpublic abstract String[] getVoices()
public int getVolume()
public void setVolume(int v)
volume - the volume to set, specified in % (0..100)public int getRate()
public void setRate(int r)
rate - the rate to set, -10..10
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||