public abstract class CMUVoice extends Voice
Modifier and Type | Field and Description |
---|---|
private PhoneSet |
phoneSet |
DATABASE_NAME, DEFAULT_AUDIO_PLAYER, DEFAULT_AUDIO_PLAYER_DEFAULT, FEATURE_JOIN_TYPE, FEATURE_SILENCE, PROP_PREFIX
Constructor and Description |
---|
CMUVoice(String name,
Gender gender,
Age age,
String description,
Locale locale,
String domain,
String organization,
CMULexicon lexicon)
Creates a simple voice
|
Modifier and Type | Method and Description |
---|---|
protected UtteranceProcessor |
getAudioOutput()
Returns the AudioOutput processor to be used by this voice
Derived voices typically override this to customize behaviors.
|
String |
getPhoneFeature(String phone,
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.
|
String |
toString()
Converts this object to its String representation
|
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
public CMUVoice(String name, Gender gender, Age age, String description, Locale locale, String domain, 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 loadprotected void loader() throws IOException
Voice
during loading, derived voices
should override this to provide customized loading.loader
in class Voice
IOException
protected void setupFeatureSet() throws IOException
IOException
- if an I/O error occursprotected void setupUtteranceProcessors() throws IOException
IOException
- throws an IOException if an error occursprotected UtteranceProcessor getPostLexicalAnalyzer() throws IOException
IOException
- if an IO error occurs while getting
processorprotected UtteranceProcessor getUnitSelector() throws IOException
IOException
- if an IO error occurs while getting
processorprotected UtteranceProcessor getPitchmarkGenerator() throws IOException
IOException
- if an IO error occurs while getting
processorprotected UtteranceProcessor getUnitConcatenator() throws IOException
IOException
- if an IO error occurs while getting
processorprotected void setupFeatureProcessors() throws IOException
IOException
- if an I/O error occurspublic String getPhoneFeature(String phone, String featureName)
getPhoneFeature
in class Voice
phone
- the phoneme of interestfeatureName
- the name of the feature of interestprotected UtteranceProcessor getAudioOutput() throws IOException
getAudioOutput
in class Voice
IOException
- if an IO error occurs while getting
processorpublic Tokenizer getTokenizer()
getTokenizer
in class Voice
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses