public class ClusterUnitVoice extends Voice implements ConcatenativeVoice
Modifier and Type | Field and Description |
---|---|
protected URL |
database |
protected URL |
partOfSpeechURL |
private PhoneSet |
phoneSet |
protected URL |
phonesetURL |
private ClusterUnitNamer |
unitNamer |
protected ClusterUnitSelector |
unitSelector |
DATABASE_NAME, DEFAULT_AUDIO_PLAYER, DEFAULT_AUDIO_PLAYER_DEFAULT, FEATURE_JOIN_TYPE, FEATURE_SILENCE, PROP_PREFIX
Constructor and Description |
---|
ClusterUnitVoice(String name,
Gender gender,
Age age,
String description,
Locale locale,
String domain,
String organization,
Lexicon lexicon,
URL database) |
ClusterUnitVoice(String name,
Gender gender,
Age age,
String description,
Locale locale,
String domain,
String organization,
Lexicon lexicon,
URL database,
ClusterUnitNamer unitNamer,
URL phonesetURL,
URL partOfSpeechURL)
Creates a ClusterUnitVoice
|
Modifier and Type | Method and Description |
---|---|
protected UtteranceProcessor |
getAudioOutput()
Returns the AudioOutput processor to be used by this voice.
|
URL |
getDatabase()
Gets the url to the database that defines the unit data for this
voice.
|
String |
getPhoneFeature(String phone,
String featureName)
Given a phoneme and a feature name, return the feature
|
UtteranceProcessor |
getPitchmarkGenerator()
Returns the pitch mark generator to be used by this voice.
|
SampleInfo |
getSampleInfo()
Get the sample info for the underlying database.
|
Tokenizer |
getTokenizer()
Returns the tokenizer associated with 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 |
loader()
Loads voice specific data.
|
protected void |
setupFeatureProcessors() |
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, toString
protected URL phonesetURL
protected URL partOfSpeechURL
protected ClusterUnitSelector unitSelector
private ClusterUnitNamer unitNamer
public ClusterUnitVoice(String name, Gender gender, Age age, String description, Locale locale, String domain, String organization, Lexicon lexicon, URL database)
public ClusterUnitVoice(String name, Gender gender, Age age, String description, Locale locale, String domain, String organization, Lexicon lexicon, URL database, ClusterUnitNamer unitNamer, URL phonesetURL, URL partOfSpeechURL)
database
- the database of the voiceunitNamer
- specifies the name of the Units (if null, an
ldom naming scheme will be used: 'ae_afternoon')phonesetURL
- leads to the phoneset, which will be used
for the FeatureProcessors (can be null)partOfSpeechURL
- leads to the pos-textfile which will be used
for the FeatureProcessors (can be null)public SampleInfo getSampleInfo()
public Tokenizer getTokenizer()
Voice
getTokenizer
in class Voice
protected void loader() throws IOException
Voice
loader
in class Voice
IOException
protected UtteranceProcessor getAudioOutput() throws IOException
Voice
getAudioOutput
in class Voice
IOException
- if an IO error occurs while getting
processorpublic URL getDatabase()
getDatabase
in interface ConcatenativeVoice
public UtteranceProcessor getUnitSelector() throws IOException
getUnitSelector
in interface ConcatenativeVoice
IOException
- if an IO error occurs while getting
processorpublic UtteranceProcessor getPitchmarkGenerator() throws IOException
getPitchmarkGenerator
in interface ConcatenativeVoice
IOException
- if an IO error occurs while getting
processorpublic UtteranceProcessor getUnitConcatenator() throws IOException
getUnitConcatenator
in interface ConcatenativeVoice
IOException
- if an IO error occurs while getting
processorprotected void setupFeatureProcessors() throws IOException
IOException
public String getPhoneFeature(String phone, String featureName)
getPhoneFeature
in class Voice
phone
- the phoneme of interestfeatureName
- the name of the feature of interestWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses