|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SpeakerManagerUI
Provides access to a user interface for managing speaker and training data.
This interface allows a user to interactively provide additional information and training data to help improve performance. The interface also provides a means to store and retrieve this data.
The following example shows how to use this interface:
Recognizer rec = ...
SpeakerManager speakerMan = rec.getSpeakerManager();
if (speakerMan != null) {
speakerManUI = speakerMan.getSpeakerManagerUI();
// Can test for supported UI class names
String[] supportedUIs = speakerManUI.getUIClassNames();
// AWT
Component component = (Component)
speakerManUI.getUI("java.awt.Component");
if (component != null) {
myWindow.add(component); // similarly for Swing
}
// lcdui
Displayable displayable = (Displayable)
speakerManUI.getUI("javax.microedition.lcdui.Displayable");
if (displayable != null) {
Display.getDisplay(myMidlet).setCurrent(displayable);
}
}
SpeakerManager
,
getSpeakerManagerUI
Method Summary | |
---|---|
Object |
getUI(String uiClassName)
Returns a user interface Object for manipulating speaker data. |
String[] |
getUIClassNames()
Returns a list of supported user interface class names. |
Method Detail |
---|
Object getUI(String uiClassName)
Object
for manipulating speaker data.
A uiClassName
results in the corresponding Object
for the following class names:
"javax.microedition.lcdui.Displayable"
"java.awt.Component"
If the uiClassName
is not supported, then null
is returned.
uiClassName
- class name for the desired SpeakerManager
UI
Object
that is
an instanceof
uiClassName
getUIClassNames
String[] getUIClassNames()
getUI
method.
getUI
|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Speech API 2.0,
Final Release v2.0.6.
© 2008, Conversay and Sun Microsystems.