public class AcousticModeller extends InternalModule
logger, state
MODULE_OFFLINE, MODULE_RUNNING
Modifier | Constructor and Description |
---|---|
|
AcousticModeller() |
|
AcousticModeller(Locale locale)
Constructor to be called with instantiated objects.
|
protected |
AcousticModeller(Locale locale,
String propertyPrefix,
FeatureProcessorManager featureProcessorManager)
Constructor to be called with instantiated objects.
|
|
AcousticModeller(String locale)
Constructor to be called with instantiated objects.
|
|
AcousticModeller(String locale,
String propertyPrefix)
Constructor which can be directly called from init info in the config file.
|
|
AcousticModeller(String locale,
String propertyPrefix,
String featprocClassInfo)
Constructor which can be directly called from init info in the config file.
|
Modifier and Type | Method and Description |
---|---|
MaryData |
process(MaryData d)
Perform this module's processing on abstract "MaryData" input
d . |
getInputType, getLocale, getOutputType, getState, inputType, name, outputType, powerOnSelfTest, shutdown, startup
public AcousticModeller()
public AcousticModeller(String locale)
locale
- localepublic AcousticModeller(Locale locale)
locale
- localepublic AcousticModeller(String locale, String propertyPrefix) throws Exception
locale
- a locale string, e.g. "en"propertyPrefix
- the prefix to be used when looking up entries in the config files, e.g. "english.duration"Exception
- Exceptionpublic AcousticModeller(String locale, String propertyPrefix, String featprocClassInfo) throws Exception
locale
- a locale string, e.g. "en"propertyPrefix
- the prefix to be used when looking up entries in the config files, e.g. "english.f0"featprocClassInfo
- a package name for an instance of FeatureProcessorManager, e.g. "marytts.language.en.FeatureProcessorManager"Exception
- Exceptionprotected AcousticModeller(Locale locale, String propertyPrefix, FeatureProcessorManager featureProcessorManager)
locale
- localepropertyPrefix
- the prefix to be used when looking up entries in the config files, e.g. "english.f0"featureProcessorManager
- the manager to use when looking up feature processors.public MaryData process(MaryData d) throws SynthesisException
InternalModule
d
. Subclasses need to make sure that the
process()
method is thread-safe, because in server-mode, it will be called from different threads at the same
time. A sensible way to do this seems to be not to use any global or static variables, or to use them read-only.
process
in interface MaryModule
process
in class InternalModule
d
- doutputType()
encapsulating the processing result.
This method just returns its input. Subclasses should override this.
SynthesisException
Copyright © 2000–2016 DFKI GmbH. All rights reserved.