public class FreeTTSSynthesizerModeDesc
extends SynthesizerModeDesc
Constructor and Description |
---|
FreeTTSSynthesizerModeDesc(java.lang.String engineName,
java.lang.String modeName,
java.util.Locale locale)
Creates a fully-specified descriptor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 modepublic javax.speech.synthesis.Voice[] getVoices()
public void validate() throws ValidationException
ValidationException
- if this FreeTTSSynthesizerModeDesc
is invalidpublic Engine createEngine() throws java.lang.IllegalArgumentException, EngineException, java.lang.SecurityException
java.lang.IllegalArgumentException
- if the properties of this
descriptor do not match any known engine or modeEngineException
- if the engine could not be createdjava.lang.SecurityException
- if the caller does not have
permission to use the speech engine