FreeTTSTimepublic class FreeTTS
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
VERSION |
Version number.
|
| Constructor | Description |
|---|---|
FreeTTS() |
Constructs a default FreeTTS with the kevin16 voice.
|
FreeTTS(Voice voice) |
Creates a FreeTTS object with the given Voice.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
public static final java.lang.String VERSION
public FreeTTS()
public FreeTTS(Voice voice)
voice - the voice to usepublic void startup()
public void shutdown()
public boolean textToSpeech(java.lang.String text)
text - the text to speakprotected 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 speakpublic boolean fileToSpeech(java.lang.String filePath)
filePath - the file containing the text to speakpublic 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)