| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.speech.engine.synthesis.VoiceList
Maintains a list of JSAPI 1.0 Voices.
| Field Summary | |
| protected  java.util.Vector | voiceListThe list of Voices. | 
| Constructor Summary | |
| VoiceList()Class constructor. | |
| VoiceList(javax.speech.synthesis.SynthesizerModeDesc desc)Constructs from the voice list in desc. | |
| Method Summary | |
|  void | addVoice(BaseVoice voice)Adds a voice to the list. | 
|  BaseVoice | getVoiceById(java.lang.String id)Gets a voice by its identifier. | 
|  java.lang.String | getVoiceId(java.lang.String name,
           int gender,
           int age,
           int variant)Gets id for voice based on parameters provided in JSML. | 
|  java.lang.String | getVoiceId(javax.speech.synthesis.Voice voice,
           int variant)Gets the id of a voice. | 
|  void | removeVoice(BaseVoice voice)Removes a voice from the list. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected java.util.Vector voiceList
Voices.
| Constructor Detail | 
public VoiceList()
public VoiceList(javax.speech.synthesis.SynthesizerModeDesc desc)
desc.
 Requires that all voices in mode desc be instances of
 BaseVoice.
desc - the SynthesizerModeDesc to get voices from| Method Detail | 
public void addVoice(BaseVoice voice)
voice - the voice to addremoveVoice(com.sun.speech.engine.synthesis.BaseVoice)public void removeVoice(BaseVoice voice)
voice - the voice to removeaddVoice(com.sun.speech.engine.synthesis.BaseVoice)public BaseVoice getVoiceById(java.lang.String id)
id - the voice id
nullBaseVoice.getId()
public java.lang.String getVoiceId(javax.speech.synthesis.Voice voice,
                                   int variant)
voice - the voicevariant - the voice variant
public java.lang.String getVoiceId(java.lang.String name,
                                   int gender,
                                   int age,
                                   int variant)
name - the voice namegender - the genderage - the agevariant - the variant
BaseVoice, 
Voice| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||