public class MbrolaVoice extends CMUVoice
DATABASE_NAME, DEFAULT_AUDIO_PLAYER, DEFAULT_AUDIO_PLAYER_DEFAULT, FEATURE_JOIN_TYPE, FEATURE_SILENCE, PROP_PREFIX| Constructor and Description |
|---|
MbrolaVoice(java.lang.String databaseDirectory,
java.lang.String database,
float rate,
float pitch,
float range,
java.lang.String name,
Gender gender,
Age age,
java.lang.String description,
java.util.Locale locale,
java.lang.String domain,
java.lang.String organization,
CMULexicon lexicon)
Creates an MbrolaVoice.
|
| Modifier and Type | Method and Description |
|---|---|
protected UtteranceProcessor |
getAudioOutput()
Returns the audio output used by this voice.
|
java.lang.String |
getDatabase()
Returns the absolute file name of the Voice database
this MbrolaVoice uses.
|
java.lang.String |
getMbrolaBase()
Returns the absolute name of the MBROLA directory.
|
java.lang.String |
getMbrolaBinary()
Returns the absolute file name of the MBROLA binary.
|
protected java.lang.String[] |
getMbrolaCommand()
Returns the command line that invokes the MBROLA executable.
|
java.lang.String |
getRenameList()
Returns the absolute file name of the MBROLA phonetic symbols
rename table.
|
protected java.net.URL |
getResource(java.lang.String resource)
Get a resource for this voice.
|
protected UtteranceProcessor |
getUnitConcatenator()
Returns the unit concatenator to be used by this voice.
|
protected UtteranceProcessor |
getUnitSelector()
Returns the unit selector to be used by this voice.
|
java.lang.String |
toString()
Converts this object to a string
|
getPhoneFeature, getPitchmarkGenerator, getPostLexicalAnalyzer, getTokenizer, loader, setupFeatureProcessors, setupFeatureSet, setupUtteranceProcessorsaddFeatureProcessor, allocate, createOutputThread, deallocate, dump, dumpProcessors, endBatch, getAge, getAudioPlayer, getDefaultAudioPlayer, getDescription, getDomain, getDurationStretch, getFeatureProcessor, getFeatures, getGender, getLexicon, getLocale, getName, getOrganization, getOutputQueue, getPitch, getPitchRange, getPitchShift, getRate, 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, startBatchpublic MbrolaVoice(java.lang.String databaseDirectory,
java.lang.String database,
float rate,
float pitch,
float range,
java.lang.String name,
Gender gender,
Age age,
java.lang.String description,
java.util.Locale locale,
java.lang.String domain,
java.lang.String organization,
CMULexicon lexicon)
databaseDirectory - the directory within the MBROLA directory
where the voice database of this voice is locateddatabase - the name of the voice database of this voicerate - the rate of the voicepitch - the pitch of the voicerange - the range of the voicename - 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 voicelexicon - the lexicon to useprotected UtteranceProcessor getUnitSelector() throws java.io.IOException
getUnitSelector in class CMUVoicejava.io.IOException - if an IO error occurs while getting
processorprotected java.lang.String[] getMbrolaCommand()
{mbrolaExecutable} -e -R {mbrolaRenameList} {mbrolaVoiceDB}
- -.raw public java.lang.String getMbrolaBase()
public java.lang.String getMbrolaBinary()
public java.lang.String getRenameList()
public java.lang.String getDatabase()
protected UtteranceProcessor getUnitConcatenator() throws java.io.IOException
getUnitConcatenator in class CMUVoicejava.io.IOException - if an IO error occurs while getting
processorprotected UtteranceProcessor getAudioOutput() throws java.io.IOException
getAudioOutput in class CMUVoicejava.io.IOException - if an I/O error occursprotected java.net.URL getResource(java.lang.String resource)
com.sun.speech.freetts.en.us.getResource in class Voice