Package com.sun.speech.freetts
Class Gender
- java.lang.Object
-
- com.sun.speech.freetts.Gender
-
- All Implemented Interfaces:
java.lang.Comparable
public class Gender extends java.lang.Object implements java.lang.Comparable
Provides an enumeration of Gender, following the JSAPI style. (http://java.sun.com/products/java-media/speech/forDevelopers/jsapi-doc/) These are intended for use to define properties about FreeTTS voices.- See Also:
Voice
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object o)
Compare two genders.java.lang.String
toString()
Generates a human readable name describing the gender.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Generates a human readable name describing the gender.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the name of the gender
-
compareTo
public int compareTo(java.lang.Object o)
Compare two genders. If either is DONT_CARE, then returns 0.- Specified by:
compareTo
in interfacejava.lang.Comparable
-
-