Package com.sun.speech.freetts.jsapi
Class FreeTTSVoice
Voice
com.sun.speech.engine.synthesis.BaseVoice
com.sun.speech.freetts.jsapi.FreeTTSVoice
Extends the BaseVoice class to encapsulate FreeTTSSynthesizer specific data.
-
Field Summary
Fields inherited from class com.sun.speech.engine.synthesis.BaseVoice
defaultPitch, defaultPitchRange, defaultSpeakingRate, defaultVolume, voiceId
-
Constructor Summary
ConstructorsConstructorDescriptionFreeTTSVoice
(Voice freettsVoice, String validatorName) Constructs a FreeTTSVoice -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a copy of thisBaseVoice
.getId()
Gets the id for this voice.getVoice()
Gets a FreeTTS com.sun.speech.freetts.Voice from this JSAPI voicevoid
Sets the id for this voice.toString()
Gets a string representation of the objectvoid
validate()
Validates this FreeTTSVoice.Methods inherited from class com.sun.speech.engine.synthesis.BaseVoice
getPitch, getPitchRange, getSpeakingRate, getVolume
-
Constructor Details
-
FreeTTSVoice
Constructs a FreeTTSVoice- Parameters:
freettsVoice
- the freetts voicevalidatorName
- the classname of the validator to use
-
-
Method Details
-
getId
Gets the id for this voice. Should be unique for a synthesizer. -
toString
Gets a string representation of the object -
getVoice
Gets a FreeTTS com.sun.speech.freetts.Voice from this JSAPI voice- Returns:
- a FreeTTS Voice or null, if the voice cannot be found
-
setId
Sets the id for this voice. -
clone
Creates a copy of thisBaseVoice
. -
validate
Validates this FreeTTSVoice.- Throws:
ValidationException
- if this FreeTTSVoice is invalid
-