|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.speech.synthesis.Voice com.sun.speech.engine.synthesis.BaseVoice
Extends the JSAPI 1.0 Voice
class to encapsulate
engine-specific data.
Field Summary | |
protected float |
defaultPitch
The default pitch |
protected float |
defaultPitchRange
The default pitch range |
protected float |
defaultSpeakingRate
The default speaking rate |
protected float |
defaultVolume
The default volume |
protected java.lang.String |
voiceId
The id of the voice |
Fields inherited from class javax.speech.synthesis.Voice |
AGE_CHILD, AGE_DONT_CARE, AGE_MIDDLE_ADULT, AGE_NEUTRAL, AGE_OLDER_ADULT, AGE_TEENAGER, AGE_YOUNGER_ADULT, GENDER_DONT_CARE, GENDER_FEMALE, GENDER_MALE, GENDER_NEUTRAL |
Constructor Summary | |
BaseVoice(java.lang.String id,
java.lang.String name,
int gender,
int age,
java.lang.String style,
float pitch,
float pitchRange,
float speakingRate,
float volume)
Class constructor. |
Method Summary | |
java.lang.Object |
clone()
Creates a copy of this voice. |
java.lang.String |
getId()
Gets the id for this voice. |
float |
getPitch()
Gets the pitch for this voice |
float |
getPitchRange()
Gets the pitch range for this voice |
float |
getSpeakingRate()
Gets the speaking rate for this voice |
float |
getVolume()
Gets the volume for this voice |
void |
setId(java.lang.String id)
Sets the id for this voice. |
java.lang.String |
toString()
Converts a Voice to a printable string. |
Methods inherited from class javax.speech.synthesis.Voice |
equals, getAge, getGender, getName, getStyle, match, setAge, setGender, setName, setStyle |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String voiceId
protected float defaultPitch
protected float defaultPitchRange
protected float defaultSpeakingRate
protected float defaultVolume
Constructor Detail |
public BaseVoice(java.lang.String id, java.lang.String name, int gender, int age, java.lang.String style, float pitch, float pitchRange, float speakingRate, float volume)
Voice
.
id
- the idname
- the namegender
- the genderage
- the agestyle
- the stylepitch
- the baseline pitch in HertzpitchRange
- the pitch range in HertzspeakingRate
- the speaking rate in words per minutevolume
- the volume expressed between 0.0 and 1.0,
inclusiveMethod Detail |
public java.lang.String getId()
setId(java.lang.String)
public void setId(java.lang.String id)
id
- the new idgetId()
public float getPitch()
public float getPitchRange()
public float getSpeakingRate()
public float getVolume()
public java.lang.Object clone()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |