hmi.elckerlyc.speechengine.ttsbinding
Class TTSBinding
java.lang.Object
hmi.elckerlyc.speechengine.ttsbinding.TTSBinding
- Direct Known Subclasses:
- MaryTTSBinding, SAPITTSBinding
public abstract class TTSBinding
- extends Object
|
Method Summary |
abstract void |
cleanup()
|
List<Class<? extends Behaviour>> |
getSupportedBMLDescriptionExtensions()
|
TimingInfo |
getTiming(Class<? extends Behaviour> behClass,
String text)
|
String[] |
getVoices()
|
void |
setCallback(TTSCallback cb)
|
void |
setParameterValue(String parameter,
float value)
|
void |
setVoice(String voice)
|
TimingInfo |
speak(Class<? extends Behaviour> behClass,
String text)
Speaks out the sentence, does the appropriate callbacks, fills out visime,
phoneme, bookmark and word lists, uses the behClass to identify the content (e.g. |
TimingInfo |
speakToFile(Class<? extends Behaviour> behClass,
String text,
String filename)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ttsGenerator
protected AbstractTTSGenerator ttsGenerator
supportedBehaviours
protected List<Class<? extends Behaviour>> supportedBehaviours
ttsBridgeMap
protected Map<Class<? extends Behaviour>,TTSBridge> ttsBridgeMap
TTSBinding
public TTSBinding()
getSupportedBMLDescriptionExtensions
public List<Class<? extends Behaviour>> getSupportedBMLDescriptionExtensions()
setParameterValue
public void setParameterValue(String parameter,
float value)
speak
public TimingInfo speak(Class<? extends Behaviour> behClass,
String text)
- Speaks out the sentence, does the appropriate callbacks, fills out visime,
phoneme, bookmark and word lists, uses the behClass to identify the content (e.g. BML, MS SAPI XML, Mary XML, SSML, ..)
- Parameters:
text - the text or script to speak
speakToFile
public TimingInfo speakToFile(Class<? extends Behaviour> behClass,
String text,
String filename)
throws IOException
- Throws:
IOException
getTiming
public TimingInfo getTiming(Class<? extends Behaviour> behClass,
String text)
setCallback
public void setCallback(TTSCallback cb)
setVoice
public void setVoice(String voice)
getVoices
public String[] getVoices()
cleanup
public abstract void cleanup()