Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • MALE

        public static final Gender MALE
        Male.
      • FEMALE

        public static final Gender FEMALE
        Female.
      • NEUTRAL

        public static final Gender NEUTRAL
        Neutral such as a robot or artificial.
      • DONT_CARE

        public static final Gender DONT_CARE
        Match against all other genders.
    • Method Detail

      • toString

        public java.lang.String toString()
        Generates a human readable name describing the gender.
        Overrides:
        toString in class java.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 interface java.lang.Comparable