com.ibm.voice
Class Speaker

java.lang.Object
  |
  +--com.ibm.voice.ProcessingBean
        |
        +--com.ibm.voice.Speaker

public class Speaker
extends ProcessingBean

This bean is used for speech synthesis.

Version:
1.0 14 Jul 1999
See Also:
Serialized Form

Field Summary
static int AGE_CHILD
          Age roughly up to 12 years.
static int AGE_DONT_CARE
          Ignore age when performing a match of voices.
static int AGE_MIDDLE_ADULT
          Age roughly 40 to 60 years.
static int AGE_NEUTRAL
          Voice with age that is indeterminate.
static int AGE_OLDER_ADULT
          Age roughly 60 years and up.
static int AGE_TEENAGER
          Age roughly 60 years and up.
static int AGE_YOUNGER_ADULT
          Age roughly 20 to 40 years.
static int GENDER_DONT_CARE
          Ignore gender when performing a match of voices.
static int GENDER_FEMALE
          Female voice.
static int GENDER_MALE
          Male voice.
static int GENDER_NEUTRAL
          Neutral voice that is neither male or female (for example, artificial voices, robotic voices).
 
Constructor Summary
Speaker()
          A default constructor with no arguments.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          The addPropertyChangeListener method was generated to support the propertyChange field.
 void addSynthesisErrorListener(SynthesisErrorListener newListener)
          Adds a new SynthesisError listener.
 void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
          The firePropertyChange method was generated to support the propertyChange field.
 java.lang.String getAboutThisBean()
          Returns a special formatted string intended for use by the editor of this property.
 int getAge()
          Gets the age property (int) value.
 int getGender()
          Gets the gender property (int) value.
 java.lang.String getInputText()
          Gets the inputText property (java.lang.String) value.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          The removePropertyChangeListener method was generated to support the propertyChange field.
 void removeSynthesisErrorListener(SynthesisErrorListener newListener)
          Removes the SynthesisError listener.
 void setAboutThisBean(java.lang.String s)
          Setter method for the aboutThisBean property to be available in the properties list.
 void setAge(int age)
          Sets the age property (int) value.
 void setGender(int gender)
          Sets the gender property (int) value.
 void setInputText(java.lang.String inputText)
          Sets the inputText property (java.lang.String) value.
 
Methods inherited from class com.ibm.voice.ProcessingBean
addActionErrorListener, addFetchArgumentsListener, addTriggerNextActionListener, removeActionErrorListener, removeFetchArgumentsListener, removeTriggerNextActionListener, triggerAction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGE_CHILD

public static final transient int AGE_CHILD
Age roughly up to 12 years.

AGE_TEENAGER

public static final transient int AGE_TEENAGER
Age roughly 60 years and up.

AGE_YOUNGER_ADULT

public static final transient int AGE_YOUNGER_ADULT
Age roughly 20 to 40 years.

AGE_MIDDLE_ADULT

public static final transient int AGE_MIDDLE_ADULT
Age roughly 40 to 60 years.

AGE_OLDER_ADULT

public static final transient int AGE_OLDER_ADULT
Age roughly 60 years and up.

AGE_NEUTRAL

public static final transient int AGE_NEUTRAL
Voice with age that is indeterminate.

AGE_DONT_CARE

public static final transient int AGE_DONT_CARE
Ignore age when performing a match of voices.

GENDER_FEMALE

public static final transient int GENDER_FEMALE
Female voice.

GENDER_MALE

public static final transient int GENDER_MALE
Male voice.

GENDER_NEUTRAL

public static final transient int GENDER_NEUTRAL
Neutral voice that is neither male or female (for example, artificial voices, robotic voices).

GENDER_DONT_CARE

public static final transient int GENDER_DONT_CARE
Ignore gender when performing a match of voices.
Constructor Detail

Speaker

public Speaker()
A default constructor with no arguments.
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field.
Parameters:
listener - java.beans.PropertyChangeListener

addSynthesisErrorListener

public void addSynthesisErrorListener(SynthesisErrorListener newListener)
Adds a new SynthesisError listener.
Parameters:
newListener - com.ibm.voice.events.SynthesisErrorListener

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               java.lang.Object oldValue,
                               java.lang.Object newValue)
The firePropertyChange method was generated to support the propertyChange field.
Parameters:
propertyName - java.lang.String
oldValue - java.lang.Object
newValue - java.lang.Object

getAboutThisBean

public java.lang.String getAboutThisBean()
Returns a special formatted string intended for use by the editor of this property.
Returns:
the special formatted string for use by the editor of this property

getAge

public int getAge()
Gets the age property (int) value.
Returns:
The age property value.
See Also:
setAge(int)

getGender

public int getGender()
Gets the gender property (int) value.
Returns:
The gender property value.
See Also:
setGender(int)

getInputText

public java.lang.String getInputText()
Gets the inputText property (java.lang.String) value.
Returns:
The inputText property value.
See Also:
setInputText(java.lang.String)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field.
Parameters:
listener - java.beans.PropertyChangeListener

removeSynthesisErrorListener

public void removeSynthesisErrorListener(SynthesisErrorListener newListener)
Removes the SynthesisError listener.
Parameters:
newListener - com.ibm.voice.events.SynthesisErrorListener

setAboutThisBean

public void setAboutThisBean(java.lang.String s)
Setter method for the aboutThisBean property to be available in the properties list. This method should not be used to set the aboutThisBean property value.
Parameters:
s - the special formatted string

setAge

public void setAge(int age)
Sets the age property (int) value.
Parameters:
age - The new value for the property.
See Also:
getAge()

setGender

public void setGender(int gender)
Sets the gender property (int) value.
Parameters:
gender - The new value for the property.
See Also:
getGender()

setInputText

public void setInputText(java.lang.String inputText)
Sets the inputText property (java.lang.String) value.
Parameters:
inputText - The new value for the property.
See Also:
getInputText()