Package com.sun.speech.freetts.en.us
Class CMUDiphoneVoice
java.lang.Object
com.sun.speech.freetts.Voice
com.sun.speech.freetts.en.us.CMUVoice
com.sun.speech.freetts.en.us.CMUDiphoneVoice
- All Implemented Interfaces:
Dumpable
,UtteranceProcessor
,de.dfki.lt.freetts.ConcatenativeVoice
Defines an unlimited-domain diphone synthesis based voice
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionCreates a simple voice.CMUDiphoneVoice
(String name, Gender gender, Age age, String description, Locale locale, String domain, String organization, CMULexicon lexicon, URL database) Creates a simple voice -
Method Summary
Modifier and TypeMethodDescriptionGets the url to the database that defines the unit data for this voice.Returns the pitch mark generator to be used by this voice.protected UtteranceProcessor
Returns the post lexical processor to be used by this voice.Returns the unit concatenator to be used by this voice.Returns the unit selector to be used by this voice.protected void
Sets the FeatureSet for this Voice.toString()
Converts this object to a stringMethods inherited from class com.sun.speech.freetts.en.us.CMUVoice
getAudioOutput, getPhoneFeature, getTokenizer, loader, setupFeatureProcessors, setupUtteranceProcessors
Methods 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
-
Field Details
-
database
-
-
Constructor Details
-
CMUDiphoneVoice
public CMUDiphoneVoice()Creates a simple voice. This is merely for backwards compatibility with versions of FreeTTS earlier than v1.2 (i.e., before the voice manager was introduced). -
CMUDiphoneVoice
public CMUDiphoneVoice(String name, Gender gender, Age age, String description, Locale locale, String domain, String organization, CMULexicon lexicon, URL database) 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 loaddatabase
- a url to the unit database file for this voice
-
-
Method Details
-
getDatabase
Gets the url to the database that defines the unit data for this voice.- Specified by:
getDatabase
in interfacede.dfki.lt.freetts.ConcatenativeVoice
- Returns:
- a url to the database
-
setupFeatureSet
Sets the FeatureSet for this Voice.- Overrides:
setupFeatureSet
in classCMUVoice
- Throws:
IOException
- if an I/O error occurs
-
getPostLexicalAnalyzer
Returns the post lexical processor to be used by this voice. Derived voices typically override this to customize behaviors.- Overrides:
getPostLexicalAnalyzer
in classCMUVoice
- Returns:
- the Unit selector
- 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. This voice uses a DiphonePitchMark generator to generate pitchmarks.- Specified by:
getPitchmarkGenerator
in interfacede.dfki.lt.freetts.ConcatenativeVoice
- Overrides:
getPitchmarkGenerator
in classCMUVoice
- Returns:
- the pitchmark processor
- 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. This voice uses a relp.UnitConcatenator to concatenate units.- Specified by:
getUnitConcatenator
in interfacede.dfki.lt.freetts.ConcatenativeVoice
- Overrides:
getUnitConcatenator
in classCMUVoice
- Returns:
- the unit concatenator processor
- 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. This voice uses the DiphoneUnitSelector to select units. The unit selector requires the name of a diphone database. If no diphone database has been specified then an Error is thrown.- Specified by:
getUnitSelector
in interfacede.dfki.lt.freetts.ConcatenativeVoice
- Overrides:
getUnitSelector
in classCMUVoice
- Returns:
- the unit selector processor
- Throws:
IOException
- if an IO error occurs while getting processor
-
toString
Converts this object to a string
-