Package com.sun.speech.freetts
Class Age
java.lang.Object
com.sun.speech.freetts.Age
- All Implemented Interfaces:
Comparable
Provides an enumeration of Age, following JSAPI style.
(http://java.sun.com/products/java-media/speech/forDevelopers/jsapi-doc/)
This is intended for use to define properties about FreeTTS voices.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AgeAge roughly up to 12 years.static final AgeMatches against any Age.static final AgeAge roughly 40 to 60 years.static final AgeAn Age that is indeterminate.static final AgeAge roughly 60 years and up.static final AgeAge roughly 13 to 19 years.static final AgeAge roughly 20 to 40 years. -
Method Summary
-
Field Details
-
CHILD
Age roughly up to 12 years. -
TEENAGER
Age roughly 13 to 19 years. -
YOUNGER_ADULT
Age roughly 20 to 40 years. -
MIDDLE_ADULT
Age roughly 40 to 60 years. -
OLDER_ADULT
Age roughly 60 years and up. -
NEUTRAL
An Age that is indeterminate. -
DONT_CARE
Matches against any Age.
-
-
Method Details
-
toString
Provide a human readable string that describes the age. -
compareTo
Compare two ages. CHILD is less than TEENAGER, and so on. If either age is DONT_CARE, then they are equal.- Specified by:
compareToin interfaceComparable
-