public class CMUDiphoneVoice extends CMUVoice implements ConcatenativeVoice
Modifier and Type | Field and Description |
---|---|
protected URL |
database |
DATABASE_NAME, DEFAULT_AUDIO_PLAYER, DEFAULT_AUDIO_PLAYER_DEFAULT, FEATURE_JOIN_TYPE, FEATURE_SILENCE, PROP_PREFIX
Constructor and Description |
---|
CMUDiphoneVoice()
Creates 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
|
Modifier and Type | Method and Description |
---|---|
URL |
getDatabase()
Gets the url to the database that defines the unit data for this
voice.
|
UtteranceProcessor |
getPitchmarkGenerator()
Returns the pitch mark generator to be used by this voice.
|
protected UtteranceProcessor |
getPostLexicalAnalyzer()
Returns the post lexical processor to be used by this voice.
|
UtteranceProcessor |
getUnitConcatenator()
Returns the unit concatenator to be used by this voice.
|
UtteranceProcessor |
getUnitSelector()
Returns the unit selector to be used by this voice.
|
protected void |
setupFeatureSet()
Sets the FeatureSet for this Voice.
|
String |
toString()
Converts this object to a string
|
getAudioOutput, getPhoneFeature, getTokenizer, loader, setupFeatureProcessors, setupUtteranceProcessors
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 CMUDiphoneVoice()
public CMUDiphoneVoice(String name, Gender gender, Age age, String description, Locale locale, String domain, String organization, CMULexicon lexicon, URL database)
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 voicepublic URL getDatabase()
getDatabase
in interface ConcatenativeVoice
protected void setupFeatureSet() throws IOException
setupFeatureSet
in class CMUVoice
IOException
- if an I/O error occursprotected UtteranceProcessor getPostLexicalAnalyzer() throws IOException
getPostLexicalAnalyzer
in class CMUVoice
IOException
- if an IO error occurs while getting
processorpublic UtteranceProcessor getPitchmarkGenerator() throws IOException
getPitchmarkGenerator
in interface ConcatenativeVoice
getPitchmarkGenerator
in class CMUVoice
IOException
- if an IO error occurs while getting
processorpublic UtteranceProcessor getUnitConcatenator() throws IOException
getUnitConcatenator
in interface ConcatenativeVoice
getUnitConcatenator
in class CMUVoice
IOException
- if an IO error occurs while getting
processorpublic UtteranceProcessor getUnitSelector() throws IOException
getUnitSelector
in interface ConcatenativeVoice
getUnitSelector
in class CMUVoice
IOException
- if an IO error occurs while getting
processorWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses