com.elantts.tts.jsapi
Class ElanVoice
java.lang.Object
|
+--javax.speech.synthesis.Voice
|
+--com.elantts.tts.jsapi.ElanVoice
- All Implemented Interfaces:
- java.lang.Cloneable
- public class ElanVoice
- extends javax.speech.synthesis.Voice
ElanVoice is an extension of javax.speech.synthesis.Voice.
The only difference is that ElanVoice has an additional field.
This field contains the javax.sound.sampled.AudioFormat associated to the voice.
|
Field Summary |
protected javax.sound.sampled.AudioFormat |
mAudioFormat
The AudioFormat associated with 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 |
ElanVoice(java.lang.String name,
int gender,
int age,
java.lang.String style,
javax.sound.sampled.AudioFormat audioformat)
Creates a new instance of ElanVoice. |
|
Method Summary |
javax.sound.sampled.AudioFormat |
getAudioFormat()
returns the AudioFormat associated with the Voice. |
protected void |
setAudioFormat(javax.sound.sampled.AudioFormat audioformat)
Set the AudioFormat to associate with the Voice. |
| Methods inherited from class javax.speech.synthesis.Voice |
clone, equals, equals, getAge, getGender, getName, getStyle, match, setAge, setGender, setName, setStyle |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mAudioFormat
protected javax.sound.sampled.AudioFormat mAudioFormat
- The AudioFormat associated with the Voice.
ElanVoice
public ElanVoice(java.lang.String name,
int gender,
int age,
java.lang.String style,
javax.sound.sampled.AudioFormat audioformat)
- Creates a new instance of ElanVoice.
- Parameters:
name - See javax.speech.synthesis.Voicegender - See javax.speech.synthesis.Voiceage - See javax.speech.synthesis.Voicestyle - See javax.speech.synthesis.Voiceaudioformat - The javax.sound.sampled.AudioFormat associated with the voice.
getAudioFormat
public javax.sound.sampled.AudioFormat getAudioFormat()
- returns the AudioFormat associated with the Voice.
- Returns:
- javax.sound.sampled.AudioFormat
setAudioFormat
protected void setAudioFormat(javax.sound.sampled.AudioFormat audioformat)
- Set the AudioFormat to associate with the Voice.
- Parameters:
audioformat - an AudioFormat to associate with the Voice.