public class FreeTTSVoice extends BaseVoice
Modifier and Type | Field and Description |
---|---|
private Voice |
freettsVoice |
private Validator |
validator |
Constructor and Description |
---|
FreeTTSVoice(Voice freettsVoice,
String validatorName)
Constructs a FreeTTSVoice
|
Modifier and Type | Method and Description |
---|---|
private static int |
ageToInt(Age age)
Convert a freetts age to jsapi age
|
Object |
clone()
Creates a copy of this
BaseVoice . |
private static int |
genderToInt(Gender gender)
Convert a freetts gender to jsapi gender
|
String |
getId()
Gets the id for this voice.
|
Voice |
getVoice()
Gets a FreeTTS com.sun.speech.freetts.Voice from this JSAPI voice
|
void |
setId(String id)
Sets the id for this voice.
|
String |
toString()
Gets a string representation of the object
|
void |
validate()
Validates this FreeTTSVoice.
|
private Voice freettsVoice
public FreeTTSVoice(Voice freettsVoice, String validatorName)
freettsVoice
- the freetts voicevalidatorName
- the classname of the validator to useprivate static int genderToInt(Gender gender)
gender
- the freetts genderprivate static int ageToInt(Age age)
age
- the freetts agepublic String getId()
public String toString()
public Voice getVoice()
public void validate() throws ValidationException
ValidationException
- if this FreeTTSVoice is invalidWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses