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 Age
Age roughly up to 12 years.static final Age
Matches against any Age.static final Age
Age roughly 40 to 60 years.static final Age
An Age that is indeterminate.static final Age
Age roughly 60 years and up.static final Age
Age roughly 13 to 19 years.static final Age
Age 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:
compareTo
in interfaceComparable
-