|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.freetts.VoiceDirectory
Provides a means to access the voices that are stored in a jar file. Every jar file that provides a voice must contain a subclass of VoiceDirectory. The class must provide a main() function that calls dumpVoices() or performs an equivalent operation. All subclasses of VoiceDirectory can be assumed to always be created by the default constructor (no arguments). Any jar file that has a subclass of VoiceDirectory must define certain attributes in its Manifest. "Main-class:" must refer to the subclass of VoiceDirectory. "Class-Path:" lists the other jar files upon which this is dependant. For example, "cmu_us_kal.jar" may be dependant on "en_us.jar" for its lexicon. The Manifest must also have a "FreeTTSVoiceDefinition: true" entry.
Voice
,
VoiceManager
Constructor Summary | |
VoiceDirectory()
Default constructor does nothing. |
Method Summary | |
abstract Voice[] |
getVoices()
Provide a means to access the voices in a voice jar file. |
static void |
main(java.lang.String[] args)
The main function must be implemented by subclasses to print out information about provided voices. |
java.lang.String |
toString()
Print the information about voices contained in this voice directory to a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VoiceDirectory()
Method Detail |
public abstract Voice[] getVoices()
public java.lang.String toString()
main(String[] args)
public static void main(java.lang.String[] args)
toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |