Package de.dfki.lt.freetts.en.us
Class MbrolaVoice
java.lang.Object
com.sun.speech.freetts.Voice
com.sun.speech.freetts.en.us.CMUVoice
de.dfki.lt.freetts.en.us.MbrolaVoice
- All Implemented Interfaces:
Dumpable
,UtteranceProcessor
Defines an unlimited-domain diphone synthesis based voice using
the MBROLA synthesis.
-
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UtteranceProcessor
Returns the audio output used by this voice.Returns the absolute file name of the Voice database this MbrolaVoice uses.Returns the absolute name of the MBROLA directory.Returns the absolute file name of the MBROLA binary.protected String[]
Returns the command line that invokes the MBROLA executable.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
Returns the unit concatenator to be used by this voice.protected UtteranceProcessor
Returns the unit selector to be used by this voice.toString()
Converts this object to a stringMethods inherited from class com.sun.speech.freetts.en.us.CMUVoice
getPhoneFeature, getPitchmarkGenerator, getPostLexicalAnalyzer, getTokenizer, loader, setupFeatureProcessors, setupFeatureSet, 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, 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
-
Constructor Details
-
MbrolaVoice
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) Creates an MbrolaVoice.- Parameters:
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 use
-
-
Method Details
-
getUnitSelector
Returns the unit selector to be used by this voice. Derived voices typically override this to customize behaviors.- Overrides:
getUnitSelector
in classCMUVoice
- Returns:
- the unit selector
- Throws:
IOException
- if an IO error occurs while getting processor
-
getMbrolaCommand
Returns the command line that invokes the MBROLA executable. The command will be in the form of:{mbrolaExecutable} -e -R {mbrolaRenameList} {mbrolaVoiceDB} - -.raw
-
getMbrolaBase
Returns the absolute name of the MBROLA directory.- Returns:
- the absolute name of the MBROLA directory
-
getMbrolaBinary
Returns the absolute file name of the MBROLA binary.- Returns:
- the absolute file name of the MBROLA binary
-
getRenameList
Returns the absolute file name of the MBROLA phonetic symbols rename table.- Returns:
- the absolute file name of the rename table
-
getDatabase
Returns the absolute file name of the Voice database this MbrolaVoice uses.- Returns:
- the absolute file name of the Voice database
-
getUnitConcatenator
Returns the unit concatenator to be used by this voice. This method constructs the command line with which the MBROLA binary will be called, and initialises the MbrolaCaller accordingly.- Overrides:
getUnitConcatenator
in classCMUVoice
- Returns:
- the unit conatenator
- Throws:
IOException
- if an IO error occurs while getting processor
-
getAudioOutput
Returns the audio output used by this voice.- Overrides:
getAudioOutput
in classCMUVoice
- Returns:
- the audio output used by this voice
- Throws:
IOException
- if an I/O error occurs
-
getResource
Get a resource for this voice. Resources for this voice are located in the packagecom.sun.speech.freetts.en.us
.- Overrides:
getResource
in classVoice
-
toString
Converts this object to a string
-