public class FreeTTSVoice extends BaseVoice
defaultPitch, defaultPitchRange, defaultSpeakingRate, defaultVolume, voiceId| Constructor | Description |
|---|---|
FreeTTSVoice(Voice freettsVoice,
java.lang.String validatorName) |
Constructs a FreeTTSVoice
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
clone() |
Creates a copy of this
BaseVoice. |
java.lang.String |
getId() |
Gets the id for this voice.
|
Voice |
getVoice() |
Gets a FreeTTS com.sun.speech.freetts.Voice from this JSAPI voice
|
void |
setId(java.lang.String id) |
Sets the id for this voice.
|
java.lang.String |
toString() |
Gets a string representation of the object
|
void |
validate() |
Validates this FreeTTSVoice.
|
getPitch, getPitchRange, getSpeakingRate, getVolumepublic FreeTTSVoice(Voice freettsVoice, java.lang.String validatorName)
freettsVoice - the freetts voicevalidatorName - the classname of the validator to usepublic java.lang.String getId()
getId in class BaseVoiceBaseVoice.setId(java.lang.String)public java.lang.String toString()
public Voice getVoice()
public void setId(java.lang.String id)
setId in class BaseVoiceid - the new idBaseVoice.getId()public java.lang.Object clone()
BaseVoice.public void validate()
throws ValidationException
ValidationException - if this FreeTTSVoice is invalid