Package com.sun.speech.engine.synthesis
Class SynthesizerSelector
- java.lang.Object
-
- com.sun.speech.engine.synthesis.SynthesizerSelector
-
public class SynthesizerSelector extends java.lang.Object
GUI that displays a list ofSynthesizer
names in a dialog box. When the user makes a selection, the selectedSynthesizerModeDesc
is returned to the caller.
-
-
Constructor Summary
Constructors Constructor Description SynthesizerSelector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SynthesizerModeDesc
getSynthesizerModeDesc(java.awt.Component component, java.lang.String appName)
AsksCentral
for a list of available synthesizers.
-
-
-
Method Detail
-
getSynthesizerModeDesc
public static SynthesizerModeDesc getSynthesizerModeDesc(java.awt.Component component, java.lang.String appName)
AsksCentral
for a list of available synthesizers. If there are none, returnsnull
. If there is only one, returns it. Otherwise, pops up an input dialog that gives the user a choice.- Parameters:
component
- the component for JOptionPane.showInputDialogappName
- the title for the input dialog- Returns:
- a
SynthesizerModeDesc
representing the synthesizer to use.
-
-