|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpgbennett.speech.FreeTTSSpeaker
public class FreeTTSSpeaker
| Constructor Summary | |
|---|---|
FreeTTSSpeaker()
Creates a new instance of FreeTTSSpeaker |
|
| Method Summary | |
|---|---|
boolean |
close()
Close file or sound output device |
java.lang.String[] |
getVoiceList()
|
static java.lang.String[] |
getVoices()
|
boolean |
init()
|
void |
setFileName(java.lang.String fileName)
Creates a Speaker object that outputs to a wave file. |
boolean |
setRate(int rate)
Sets the rate (speed) of output speech |
void |
setVoice(java.lang.String voiceName)
|
boolean |
setVolume(int volume)
Set output volume for text, default is 100 |
boolean |
speak(java.lang.String strInput)
Converts the given input text to speech. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FreeTTSSpeaker()
| Method Detail |
|---|
public static java.lang.String[] getVoices()
public void setFileName(java.lang.String fileName)
fileName - File name for output wave file.public void setVoice(java.lang.String voiceName)
setVoice in interface SpeechInterfacepublic boolean init()
init in interface SpeechInterfacepublic boolean close()
SpeechInterface
close in interface SpeechInterfacepublic boolean setRate(int rate)
SpeechInterface
setRate in interface SpeechInterfacerate - Rate, valid values are from -10 to 10public boolean setVolume(int volume)
SpeechInterface
setVolume in interface SpeechInterfacevolume - Volume from 0 to 100public boolean speak(java.lang.String strInput)
SpeechInterface
speak in interface SpeechInterfacestrInput - String with words to convert to speechpublic java.lang.String[] getVoiceList()
getVoiceList in interface SpeechInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||