Static Public Member Functions | |
static void | init (String vocePath, boolean initSynthesis, boolean initRecognition, String grammarPath, String grammarName) |
static void | destroy () |
static void | synthesize (String message) |
static void | stopSynthesizing () |
static int | getRecognizerQueueSize () |
static String | popRecognizedString () |
static void | setRecognizerEnabled (boolean e) |
static boolean | isRecognizerEnabled () |
Static Private Attributes | |
static SpeechSynthesizer | mSynthesizer = null |
static SpeechRecognizer | mRecognizer = null |
Definition at line 32 of file SpeechInterface.java.
|
Destroys Voce.
Definition at line 91 of file SpeechInterface.java. References voce.SpeechRecognizer.destroy(), voce.SpeechSynthesizer.destroy(), voce.SpeechInterface.mRecognizer, and voce.SpeechInterface.mSynthesizer. |
|
Returns the number of recognized strings currently in the recognizer's queue. Definition at line 139 of file SpeechInterface.java. References voce.SpeechRecognizer.getQueueSize(), and voce.SpeechInterface.mRecognizer. |
|
Initializes Voce. The 'vocePath' String specifies the path where Voce classes and config file can be found. 'initSynthesis' and 'initRecognition' enable these capabilities; if you don't need one or the other, not initializing it will save load time and memory (though the feature will be disabled, of course). 'grammarPath' is a relative or absolute path to one or more grammar files (all .gram files in 'grammarPath' will automatically be searched). 'grammarName' is the name of a specific grammar within a .gram file in the 'grammarPath'. If the 'grammarName' is empty, a simple default grammar will be used. Definition at line 47 of file SpeechInterface.java. References voce.SpeechInterface.mRecognizer, voce.SpeechInterface.mSynthesizer, and voce.SpeechInterface.setRecognizerEnabled(). |
|
Returns true if the recognizer is currently enabled.
Definition at line 182 of file SpeechInterface.java. References voce.SpeechRecognizer.isEnabled(), and voce.SpeechInterface.mRecognizer. |
|
Returns and removes the oldest recognized string from the recognizer's queue. Definition at line 154 of file SpeechInterface.java. References voce.SpeechInterface.mRecognizer, and voce.SpeechRecognizer.popString(). |
|
Enables and disables the speech recognizer.
Definition at line 168 of file SpeechInterface.java. References voce.SpeechInterface.mRecognizer, and voce.SpeechRecognizer.setEnabled(). Referenced by voce.SpeechInterface.init(). |
|
Tells the speech synthesizer to stop synthesizing. This cancels all pending messages. Definition at line 125 of file SpeechInterface.java. References voce.SpeechInterface.mSynthesizer, and voce.SpeechSynthesizer.stopSynthesizing(). |
|
Requests that the given string be synthesized as soon as possible.
Definition at line 109 of file SpeechInterface.java. References voce.SpeechInterface.mSynthesizer, and voce.SpeechSynthesizer.synthesize(). |
|
|
Definition at line 34 of file SpeechInterface.java. Referenced by voce.SpeechInterface.destroy(), voce.SpeechInterface.init(), voce.SpeechInterface.stopSynthesizing(), and voce.SpeechInterface.synthesize(). |