public class FreeTTSTime extends FreeTTS
| Constructor and Description |
|---|
FreeTTSTime()
Class constructor.
|
FreeTTSTime(Voice voice)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
fileToSpeech, getInputMode, getSilentMode, getVoice, setAudioFile, setInputMode, setMultiAudio, setSilentMode, setStreamingAudio, shutdown, startup, streamToSpeech, textToSpeech, urlToSpeechpublic FreeTTSTime()
public FreeTTSTime(Voice voice)
voice - Voice to say time withpublic static void usage()
public static java.lang.String timeToString(java.lang.String time)
time - the time in the form HH:MMpublic static java.lang.String timeToString(int hour,
int min)
hour - the hourmin - the minutespublic void timeToSpeech(java.lang.String time)
time - the time in the form HH:MMjava.lang.IllegalArgumentException - if time is not in the form
HH:MMpublic 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)