Modifier and Type | Field and Description |
---|---|
private static boolean |
activeThread_ |
private boolean |
initialized_ |
private static JVoice |
singletonInstance |
private javax.speech.synthesis.Synthesizer |
synthesizer |
private static String[] |
textToRead_ |
private static boolean |
verboseOutput_ |
Modifier | Constructor and Description |
---|---|
private |
JVoice()
Construct a default JVoice object.
|
Modifier and Type | Method and Description |
---|---|
void |
blockUntilDoneVoicing() |
void |
close()
Closes things down
|
static JVoice |
getInstance()
Gets the singleton for this class
|
boolean |
isInitialized() |
static void |
listAllVoices(String modeName)
Example of how to list all the known voices for a specific
mode using just JSAPI.
|
static void |
main(String[] argv)
The main program for the JVoice class
|
void |
readText()
Reads the text in this class's textToRead_ field.
|
void |
readText(String theText)
Reads text from the console and gives it to the synthesizer to speak.
|
void |
readText(String[] theTextArray)
Reads an array of Strings.
|
void |
run() |
private static void |
runTests(String[] argv)
some simple test routines.
|
void |
setTextToRead(String textToRead) |
void |
setTextToRead(String[] textToRead) |
private javax.speech.synthesis.Synthesizer synthesizer
private boolean initialized_
private static boolean activeThread_
private static JVoice singletonInstance
private static String[] textToRead_
private static boolean verboseOutput_
private JVoice()
public static JVoice getInstance()
public void blockUntilDoneVoicing()
public void setTextToRead(String textToRead)
public void setTextToRead(String[] textToRead)
public boolean isInitialized()
public static void listAllVoices(String modeName)
public static void main(String[] argv)
argv
- The command line argumentspublic void readText()
public void readText(String[] theTextArray)
theTextArray
- An Array of Strings to read.public void readText(String theText)
theText
- Description of the Parameterpublic void close()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses