public class MbrolaVoice extends CMUVoice
Modifier and Type | Field and Description |
---|---|
private String |
database |
private String |
databaseDirectory |
private static String |
MRPA_TO_SAMPA_RENAME_LIST |
DATABASE_NAME, DEFAULT_AUDIO_PLAYER, DEFAULT_AUDIO_PLAYER_DEFAULT, FEATURE_JOIN_TYPE, FEATURE_SILENCE, PROP_PREFIX
Constructor and Description |
---|
MbrolaVoice(String databaseDirectory,
String database,
float rate,
float pitch,
float range,
String name,
Gender gender,
Age age,
String description,
Locale locale,
String domain,
String organization,
CMULexicon lexicon)
Creates an MbrolaVoice.
|
Modifier and Type | Method and Description |
---|---|
protected UtteranceProcessor |
getAudioOutput()
Returns the audio output used by this voice.
|
String |
getDatabase()
Returns the absolute file name of the Voice database
this MbrolaVoice uses.
|
String |
getMbrolaBase()
Returns the absolute name of the MBROLA directory.
|
String |
getMbrolaBinary()
Returns the absolute file name of the MBROLA binary.
|
protected String[] |
getMbrolaCommand()
Returns the command line that invokes the MBROLA executable.
|
String |
getRenameList()
Returns the absolute file name of the MBROLA phonetic symbols
rename table.
|
protected URL |
getResource(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.
|
String |
toString()
Converts this object to a string
|
getPhoneFeature, getPitchmarkGenerator, getPostLexicalAnalyzer, getTokenizer, loader, setupFeatureProcessors, setupFeatureSet, 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, 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
private String databaseDirectory
private static final String MRPA_TO_SAMPA_RENAME_LIST
public MbrolaVoice(String databaseDirectory, String database, float rate, float pitch, float range, String name, Gender gender, Age age, String description, Locale locale, String domain, 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 IOException
getUnitSelector
in class CMUVoice
IOException
- if an IO error occurs while getting
processorprotected String[] getMbrolaCommand()
{mbrolaExecutable} -e -R {mbrolaRenameList} {mbrolaVoiceDB} - -.raw
public String getMbrolaBase()
public String getMbrolaBinary()
public String getRenameList()
public String getDatabase()
protected UtteranceProcessor getUnitConcatenator() throws IOException
getUnitConcatenator
in class CMUVoice
IOException
- if an IO error occurs while getting
processorprotected UtteranceProcessor getAudioOutput() throws IOException
getAudioOutput
in class CMUVoice
IOException
- if an I/O error occursprotected URL getResource(String resource)
com.sun.speech.freetts.en.us
.getResource
in class Voice
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses