|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.freetts.Voice com.sun.speech.freetts.en.us.CMUVoice
Provides generic support for a CMU Voice
Field Summary |
Fields inherited from class com.sun.speech.freetts.Voice |
DATABASE_NAME, DEFAULT_AUDIO_PLAYER, DEFAULT_AUDIO_PLAYER_DEFAULT, FEATURE_JOIN_TYPE, FEATURE_SILENCE, PROP_PREFIX |
Constructor Summary | |
CMUVoice(java.lang.String name,
Gender gender,
Age age,
java.lang.String description,
java.util.Locale locale,
java.lang.String domain,
java.lang.String organization,
CMULexicon lexicon)
Creates a simple voice |
Method Summary | |
protected UtteranceProcessor |
getAudioOutput()
Returns the AudioOutput processor to be used by this voice Derived voices typically override this to customize behaviors. |
java.lang.String |
getPhoneFeature(java.lang.String phone,
java.lang.String featureName)
Given a phoneme and a feature name, return the feature |
protected UtteranceProcessor |
getPitchmarkGenerator()
Returns the pitch mark generator to be used by this voice Derived voices typically override this to customize behaviors. |
protected UtteranceProcessor |
getPostLexicalAnalyzer()
Returns the post lexical processor to be used by this voice. |
Tokenizer |
getTokenizer()
Gets a tokenizer for this voice |
protected UtteranceProcessor |
getUnitConcatenator()
Returns the unit concatenator to be used by this voice Derived voices typically override this to customize behaviors. |
protected UtteranceProcessor |
getUnitSelector()
Returns the unit selector to be used by this voice Derived voices typically override this to customize behaviors. |
protected void |
loader()
Called by Voice during loading, derived voices
should override this to provide customized loading. |
protected void |
setupFeatureProcessors()
Sets up the FeatureProcessors for this Voice. |
protected void |
setupFeatureSet()
Sets up the FeatureSet for this Voice. |
protected void |
setupUtteranceProcessors()
Sets up the utterance processors for this voice. |
java.lang.String |
toString()
Converts this object to its String representation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CMUVoice(java.lang.String name, Gender gender, Age age, java.lang.String description, java.util.Locale locale, java.lang.String domain, java.lang.String organization, CMULexicon lexicon)
name
- the name of the voicegender
- the gender of the voiceage
- the age of the voicedescription
- a human-readable string providing a
description that can be displayed for the users.locale
- the locale of the voicedomain
- the domain of this voice. For example,organization
- the organization which created the voice
"general", "time", or
"weather".lexicon
- the lexicon to loadMethod Detail |
protected void loader() throws java.io.IOException
Voice
during loading, derived voices
should override this to provide customized loading.
loader
in class Voice
java.io.IOException
protected void setupFeatureSet() throws java.io.IOException
java.io.IOException
- if an I/O error occursprotected void setupUtteranceProcessors() throws java.io.IOException
java.io.IOException
- throws an IOException if an error occursprotected UtteranceProcessor getPostLexicalAnalyzer() throws java.io.IOException
java.io.IOException
- if an IO error occurs while getting
processorprotected UtteranceProcessor getUnitSelector() throws java.io.IOException
java.io.IOException
- if an IO error occurs while getting
processorprotected UtteranceProcessor getPitchmarkGenerator() throws java.io.IOException
java.io.IOException
- if an IO error occurs while getting
processorprotected UtteranceProcessor getUnitConcatenator() throws java.io.IOException
java.io.IOException
- if an IO error occurs while getting
processorprotected void setupFeatureProcessors() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic java.lang.String getPhoneFeature(java.lang.String phone, java.lang.String featureName)
getPhoneFeature
in class Voice
phone
- the phoneme of interestfeatureName
- the name of the feature of interest
protected UtteranceProcessor getAudioOutput() throws java.io.IOException
getAudioOutput
in class Voice
java.io.IOException
- if an IO error occurs while getting
processorpublic Tokenizer getTokenizer()
getTokenizer
in class Voice
public java.lang.String toString()
toString
in class Voice
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |