Package com.sun.speech.freetts.en.us
Class CMUVoice
java.lang.Object
com.sun.speech.freetts.Voice
com.sun.speech.freetts.en.us.CMUVoice
- All Implemented Interfaces:
Dumpable
,UtteranceProcessor
- Direct Known Subclasses:
CMUClusterUnitVoice
,CMUDiphoneVoice
,MbrolaVoice
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UtteranceProcessor
Returns the AudioOutput processor to be used by this voice Derived voices typically override this to customize behaviors.getPhoneFeature
(String phone, String featureName) Given a phoneme and a feature name, return the featureprotected UtteranceProcessor
Returns the pitch mark generator to be used by this voice Derived voices typically override this to customize behaviors.protected UtteranceProcessor
Returns the post lexical processor to be used by this voice.Gets a tokenizer for this voiceprotected UtteranceProcessor
Returns the unit concatenator to be used by this voice Derived voices typically override this to customize behaviors.protected UtteranceProcessor
Returns the unit selector to be used by this voice Derived voices typically override this to customize behaviors.protected void
loader()
Called byVoice
during loading, derived voices should override this to provide customized loading.protected void
Sets up the FeatureProcessors for this Voice.protected void
Sets up the FeatureSet for this Voice.protected void
Sets up the utterance processors for this voice.toString()
Converts this object to its String representationMethods inherited from class com.sun.speech.freetts.Voice
addFeatureProcessor, allocate, createOutputThread, deallocate, dump, dumpProcessors, endBatch, getAge, getAudioPlayer, getDefaultAudioPlayer, getDescription, getDomain, getDurationStretch, getFeatureProcessor, getFeatures, getGender, getLexicon, getLocale, getName, getOrganization, getOutputQueue, getPitch, getPitchRange, getPitchShift, getRate, getResource, getRunTitle, getStyle, getUtteranceProcessors, getVolume, getWaveDumpFile, isDetailedMetrics, isDumpRelations, isDumpUtterance, isLoaded, isMetrics, load, processNode, processUtterance, setAge, setAudioPlayer, setDescription, setDetailedMetrics, setDomain, setDumpRelations, setDumpUtterance, setDurationStretch, setGender, setLexicon, setLoaded, setLocale, setMetrics, setName, setOrganization, setOutputQueue, setPitch, setPitchRange, setPitchShift, setRate, setRunTitle, setStyle, setVolume, setWaveDumpFile, speak, speak, speak, speak, startBatch
-
Constructor Details
-
CMUVoice
public CMUVoice(String name, Gender gender, Age age, String description, Locale locale, String domain, String organization, CMULexicon lexicon) Creates a simple voice- Parameters:
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 load
-
-
Method Details
-
loader
Called byVoice
during loading, derived voices should override this to provide customized loading.- Specified by:
loader
in classVoice
- Throws:
IOException
-
setupFeatureSet
Sets up the FeatureSet for this Voice.- Throws:
IOException
- if an I/O error occurs
-
setupUtteranceProcessors
Sets up the utterance processors for this voice. Subclasses should define this method to setup the utterance processors for the voice.- Throws:
IOException
- throws an IOException if an error occurs
-
getPostLexicalAnalyzer
Returns the post lexical processor to be used by this voice. Derived voices typically override this to customize behaviors.- Returns:
- the post lexical analyzer in use by this voice
- Throws:
IOException
- if an IO error occurs while getting processor
-
getUnitSelector
Returns the unit selector to be used by this voice Derived voices typically override this to customize behaviors.- Returns:
- the unit selector in use by this voice
- Throws:
IOException
- if an IO error occurs while getting processor
-
getPitchmarkGenerator
Returns the pitch mark generator to be used by this voice Derived voices typically override this to customize behaviors.- Returns:
- the pitch mark generator to be used by this voice
- Throws:
IOException
- if an IO error occurs while getting processor
-
getUnitConcatenator
Returns the unit concatenator to be used by this voice Derived voices typically override this to customize behaviors.- Returns:
- the Unit concatenator
- Throws:
IOException
- if an IO error occurs while getting processor
-
setupFeatureProcessors
Sets up the FeatureProcessors for this Voice.- Throws:
IOException
- if an I/O error occurs
-
getPhoneFeature
Given a phoneme and a feature name, return the feature- Overrides:
getPhoneFeature
in classVoice
- Parameters:
phone
- the phoneme of interestfeatureName
- the name of the feature of interest- Returns:
- the feature with the given name
-
getAudioOutput
Returns the AudioOutput processor to be used by this voice Derived voices typically override this to customize behaviors.- Specified by:
getAudioOutput
in classVoice
- Returns:
- the audio output processor
- Throws:
IOException
- if an IO error occurs while getting processor
-
getTokenizer
Gets a tokenizer for this voice- Specified by:
getTokenizer
in classVoice
- Returns:
- the tokenizer
-
toString
Converts this object to its String representation
-