public class FreeTTSSynthesizerModeDesc extends javax.speech.synthesis.SynthesizerModeDesc implements javax.speech.EngineCreate
Constructor and Description |
---|
FreeTTSSynthesizerModeDesc(String engineName,
String modeName,
Locale locale)
Creates a fully-specified descriptor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addVoice, equals, match, setVoices
public FreeTTSSynthesizerModeDesc(String engineName, String modeName, 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()
getVoices
in class javax.speech.synthesis.SynthesizerModeDesc
public void validate() throws ValidationException
ValidationException
- if this FreeTTSSynthesizerModeDesc
is invalidpublic javax.speech.Engine createEngine() throws IllegalArgumentException, javax.speech.EngineException, SecurityException
createEngine
in interface javax.speech.EngineCreate
IllegalArgumentException
- if the properties of this
descriptor do not match any known engine or modejavax.speech.EngineException
- if the engine could not be createdSecurityException
- if the caller does not have
permission to use the speech engineWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses