|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.speech.EngineModeDesc
javax.speech.synthesis.SynthesizerModeDesc
com.sun.speech.freetts.jsapi.FreeTTSSynthesizerModeDesc
Represents a SynthesizerModeDesc for the FreeTTSSynthesizer. A FreeTTSSynthesizerModeDesc adds an audio player to the standard mode items.
| Constructor Summary | |
FreeTTSSynthesizerModeDesc(java.lang.String engineName,
java.lang.String modeName,
java.util.Locale locale)
Creates a fully-specified descriptor. |
|
| Method Summary | |
javax.speech.Engine |
createEngine()
Constructs a FreeTTSSynthesizer with the properties of this mode descriptor. |
javax.speech.synthesis.Voice[] |
getVoices()
Returns the valid voices in this synthesizer mode. |
void |
validate()
Returns true if this is a valid FreeTTSSynthesizerModeDesc. |
| Methods inherited from class javax.speech.synthesis.SynthesizerModeDesc |
addVoice, equals, match, setVoices |
| Methods inherited from class javax.speech.EngineModeDesc |
getEngineName, getLocale, getModeName, getRunning, setEngineName, setLocale, setModeName, setRunning |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FreeTTSSynthesizerModeDesc(java.lang.String engineName,
java.lang.String modeName,
java.util.Locale locale)
null.
engineName - the name of the enginemodeName - the name of the modelocale - the locale associated with this mode| Method Detail |
public javax.speech.synthesis.Voice[] getVoices()
public void validate()
throws ValidationException
ValidationException - if this FreeTTSSynthesizerModeDesc
is invalid
public javax.speech.Engine createEngine()
throws java.lang.IllegalArgumentException,
javax.speech.EngineException,
java.lang.SecurityException
createEngine in interface javax.speech.EngineCreatejava.lang.IllegalArgumentException - if the properties of this
descriptor do not match any known engine or mode
javax.speech.EngineException - if the engine could not be created
java.lang.SecurityException - if the caller does not have
permission to use the speech engine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||