|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.speech.freetts.FreeTTS
com.sun.speech.freetts.FreeTTSTime
Standalone utility that tells the time. Defaults to "alan" voice.
| Constructor Summary | |
FreeTTSTime()
Class constructor. |
|
FreeTTSTime(Voice voice)
Class constructor. |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
The main entry point for FreeTTSTime. |
void |
safeTimeToSpeech(java.lang.String time)
Speaks the given time. |
void |
speakNow()
Tells the current time. |
void |
timeToSpeech(int hour,
int min)
Speaks the time given the hour and minute. |
void |
timeToSpeech(java.lang.String time)
Speaks the given time. |
static java.lang.String |
timeToString(int hour,
int min)
Returns a string that corresponds to the given time. |
static java.lang.String |
timeToString(java.lang.String time)
Returns a string that corresponds to the given time. |
static void |
usage()
Prints the usage message for FreeTTSTime. |
| Methods inherited from class com.sun.speech.freetts.FreeTTS |
fileToSpeech, getInputMode, getSilentMode, getVoice, setAudioFile, setInputMode, setMultiAudio, setSilentMode, setStreamingAudio, shutdown, startup, streamToSpeech, textToSpeech, urlToSpeech |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FreeTTSTime()
public FreeTTSTime(Voice voice)
voice - Voice to say time with| Method Detail |
public static void usage()
public static java.lang.String timeToString(java.lang.String time)
time - the time in the form HH:MM
public static java.lang.String timeToString(int hour,
int min)
hour - the hourmin - the minutes
public void timeToSpeech(java.lang.String time)
time - the time in the form HH:MM
java.lang.IllegalArgumentException - if time is not in the form
HH:MM
public void timeToSpeech(int hour,
int min)
hour - the hour of the day (0 to 23)min - the minute of the hour (0 to 59)public void safeTimeToSpeech(java.lang.String time)
time - the time in the form HH:MMpublic void speakNow()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||