|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.cloudgarden.speech.CGEngineProperties
This class provides the standard methods of the EngineProperties interface, but also allows UI components specific to the Microsoft speech API to be displayed.
Field Summary | |
static int |
ADD_REMOVE_WORD_UI
|
static int |
AUDIO_PROPS_UI
|
static int |
AUDIO_VOL_UI
|
static int |
ENGINE_PROPS_UI
|
static int |
MIC_TRAINING_UI
|
static int |
RECO_PROFILE_UI
|
static int |
USER_TRAINING_UI
|
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
allowGuessingOfSpeaker(boolean allow)
If set to "true" allows SAPI4 Recognizers to "guess" the current SpeakerProfile, so that subsequent calls to SpeakerManager.getCurrentSpeaker will return the profile that the engine is currently using. |
java.awt.Component |
getControlComponent()
Obtain the AWT Component that provides the default user interface for setting the properties of this Engine. |
java.awt.Component |
getControlComponent(int type)
Method allowing Microsoft-specific user-interfaces which are not available using the getControlComponent() method to be displayed. |
int |
getSapiVersion()
Returns 4 for a SAPI4 engine or 5 for a SAPI5 engine |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
reset()
|
void |
setEventsInNewThread(boolean inNewThread)
Determines whether speech events are generated in separate Threads. |
static boolean |
useFixForInfovox330()
|
static void |
useFixForInfovox330(boolean useFix)
An exceptional method to allow synthesizers to get around bug in Infovox 330 (and possibly other versions of the engines) synthesizers regarding the wordReached events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int USER_TRAINING_UI
public static final int RECO_PROFILE_UI
public static final int ADD_REMOVE_WORD_UI
public static final int ENGINE_PROPS_UI
public static final int MIC_TRAINING_UI
public static final int AUDIO_PROPS_UI
public static final int AUDIO_VOL_UI
Method Detail |
public void setEventsInNewThread(boolean inNewThread)
Note, the behaviour is set for each Engine individually.
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface EngineProperties
public int getSapiVersion()
public void allowGuessingOfSpeaker(boolean allow)
public java.awt.Component getControlComponent()
getControlComponent
in interface EngineProperties
public java.awt.Component getControlComponent(int type)
type
- one of the EngineProperties fields USER_TRAINING_UI, RECO_PROFILE_UI,
ADD_REMOVE_WORD_UI, ENGINE_PROPS_UI, MIC_TRAINING_UI, AUDIO_PROPS_UI,
or AUDIO_VOL_UI.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface EngineProperties
public void reset()
reset
in interface EngineProperties
public static void useFixForInfovox330(boolean useFix)
public static boolean useFixForInfovox330()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |