|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.freetts.FreeTTS
Standalone utility that directly interacts with a CMUDiphoneVoice.
Constructor Summary | |
FreeTTS()
Constructs a default FreeTTS with the kevin16 voice. |
|
FreeTTS(Voice voice)
Creates a FreeTTS object with the given Voice. |
Method Summary | |
boolean |
fileToSpeech(java.lang.String filePath)
Converts the text contained in the given path to speech. |
InputMode |
getInputMode()
Returns the InputMode. |
boolean |
getSilentMode()
Gets silent mode. |
protected Voice |
getVoice()
Returns the voice used by FreeTTS. |
static void |
main(java.lang.String[] args)
The main entry point for FreeTTS. |
void |
setAudioFile(java.lang.String audioFile)
Sets the audio file . |
void |
setInputMode(InputMode inputMode)
Sets the input mode. |
void |
setMultiAudio(boolean multiAudio)
Sets multi audio. |
void |
setSilentMode(boolean silent)
Turns audio playing on and off. |
void |
setStreamingAudio(boolean streamingAudio)
Sets streaming audio. |
void |
shutdown()
Shuts down this FreeTTS synthesizer by closing the AudioPlayer and voice. |
void |
startup()
Starts this FreeTTS Synthesizer by loading the void and creating a new AudioPlayer. |
boolean |
streamToSpeech(java.io.InputStream is)
Converts the text contained in the given stream to speech. |
boolean |
textToSpeech(java.lang.String text)
Converts the given text to speech based using processing options currently set in FreeTTS. |
boolean |
urlToSpeech(java.lang.String urlPath)
Converts the text contained in the given path to speech. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FreeTTS()
public FreeTTS(Voice voice)
voice
- the voice to useMethod Detail |
public void startup()
public void shutdown()
public boolean textToSpeech(java.lang.String text)
text
- the text to speak
protected Voice getVoice()
public boolean streamToSpeech(java.io.InputStream is)
is
- the stream containing the text to speakpublic boolean urlToSpeech(java.lang.String urlPath)
urlPath
- the file containing the text to speak
public boolean fileToSpeech(java.lang.String filePath)
filePath
- the file containing the text to speak
public void setSilentMode(boolean silent)
silent
- if true, don't play audiopublic boolean getSilentMode()
setSilentMode(boolean)
public void setInputMode(InputMode inputMode)
inputMode
- the input modepublic InputMode getInputMode()
setInputMode(com.sun.speech.freetts.InputMode)
public void setAudioFile(java.lang.String audioFile)
audioFile
- the audioFilepublic void setMultiAudio(boolean multiAudio)
multiAudio
- if true
send output to multiple
files.public void setStreamingAudio(boolean streamingAudio)
streamingAudio
- if true
stream audiopublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |