JSAPI 2.0

javax.speech.recognition
Interface SpeakerManagerUI


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);
     }
 }
 

See Also:
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

getUI

Object getUI(String uiClassName)
Returns a user interface Object for manipulating speaker data. A uiClassName results in the corresponding Object for the following class names:

If the uiClassName is not supported, then null is returned.

Parameters:
uiClassName - class name for the desired SpeakerManager UI
Returns:
a UI Object that is an instanceof uiClassName
See Also:
getUIClassNames

getUIClassNames

String[] getUIClassNames()
Returns a list of supported user interface class names. These may be used in the getUI method.

Returns:
a list of supported user interface class names.
See Also:
getUI

JSAPI 2.0

JavaTM Speech API 2.0, Final Release v2.0.6.
© 2008, Conversay and Sun Microsystems.

Free Web Hosting