hmi.tts.mary
Class AbstractMaryTTSBridge

java.lang.Object
  extended by hmi.tts.mary.AbstractMaryTTSBridge
All Implemented Interfaces:
TTSBridge
Direct Known Subclasses:
MaryAllophonesTTSBridge, MarySSMLTTSBridge, MaryWordsTTSBridge, MaryXMLTTSBridge

public abstract class AbstractMaryTTSBridge
extends Object
implements TTSBridge


Field Summary
private  marytts.datatypes.MaryDataType inputType
           
protected  MaryTTSGenerator ttsGenerator
           
 
Constructor Summary
AbstractMaryTTSBridge(MaryTTSGenerator ttsGen, marytts.datatypes.MaryDataType input)
           
 
Method Summary
 TimingInfo getTiming(String text)
          Gets the timing of the text, fills out visime, phoneme,bookmark and word lists
 TimingInfo speak(String text)
          Speaks out the sentence, does the appropriate callbacks, fills out visime,
 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.
abstract  String wrap(String speechText)
          Wraps speech text into proper start/end tags for this input format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ttsGenerator

protected final MaryTTSGenerator ttsGenerator

inputType

private final marytts.datatypes.MaryDataType inputType
Constructor Detail

AbstractMaryTTSBridge

public AbstractMaryTTSBridge(MaryTTSGenerator ttsGen,
                             marytts.datatypes.MaryDataType input)
Method Detail

speak

public TimingInfo speak(String text)
Description copied from interface: TTSBridge
Speaks out the sentence, does the appropriate callbacks, fills out visime,

Specified by:
speak in interface TTSBridge
Parameters:
text - the text or script to speak

speakToFile

public TimingInfo speakToFile(String text,
                              String filename)
                       throws IOException
Description copied from interface: TTSBridge
Generates a file containing the spoken sentence, does the apropiate callbacks, fills out visime, phoneme, bookmark and word lists.

Specified by:
speakToFile in interface TTSBridge
Parameters:
text - the text or script to speak
Throws:
FileNotFoundException
IOException

getTiming

public TimingInfo getTiming(String text)
Description copied from interface: TTSBridge
Gets the timing of the text, fills out visime, phoneme,bookmark and word lists

Specified by:
getTiming in interface TTSBridge
Parameters:
text - the text or script to get the timing of

wrap

public abstract String wrap(String speechText)
Wraps speech text into proper start/end tags for this input format