com.sun.speech.freetts
Class Gender

java.lang.Object
  extended bycom.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

Field Summary
static Gender DONT_CARE
          Match against all other genders.
static Gender FEMALE
          Female.
static Gender MALE
          Male.
static Gender NEUTRAL
          Neutral such as a robot or artificial.
 
Method Summary
 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.

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