hmi.tts.sapi5
Class SAPITTSBridge

java.lang.Object
  extended by hmi.tts.sapi5.SAPITTSBridge
All Implemented Interfaces:
TTSBridge

public class SAPITTSBridge
extends Object
implements TTSBridge


Field Summary
private  SAPI5TTSGenerator ttsGenerator
           
 
Constructor Summary
SAPITTSBridge(SAPI5TTSGenerator ttsGen)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ttsGenerator

private final SAPI5TTSGenerator ttsGenerator
Constructor Detail

SAPITTSBridge

public SAPITTSBridge(SAPI5TTSGenerator ttsGen)
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