public class FeatureProcessorManager extends Object
Modifier and Type | Field and Description |
---|---|
protected Locale |
locale |
protected Map<String,String[]> |
phonefeatures2values |
protected Map<String,MaryFeatureProcessor> |
processors |
Constructor and Description |
---|
FeatureProcessorManager()
Deprecated.
|
FeatureProcessorManager(Locale locale) |
FeatureProcessorManager(String localeString) |
FeatureProcessorManager(Voice voice)
Constructor called from a Voice that has its own acoustic models
|
Modifier and Type | Method and Description |
---|---|
protected void |
addFeatureProcessor(MaryFeatureProcessor fp) |
MaryFeatureProcessor |
getFeatureProcessor(String name) |
Locale |
getLocale()
Get the locale for this feature processor manager.
|
String |
listByteValuedFeatureProcessorNames() |
String |
listContinuousFeatureProcessorNames() |
String |
listFeatureProcessorNames()
Provide a space-separated list of the feature names for all the feature processors known to this feature processor manager.
|
String |
listShortValuedFeatureProcessorNames() |
protected void |
registerAcousticModels(Voice voice)
Create any additional feature processors for acoustic models.
|
protected void |
setupGenericFeatureProcessors() |
protected void |
setupHardcodedPhoneFeatureValues()
Deprecated.
|
protected void |
setupPhoneFeatureProcessors(AllophoneSet phoneset,
String[] phoneValues,
String pauseSymbol,
Map<String,String[]> featuresToValues)
Set up phone feature processors based on phoneset.
|
protected Map<String,MaryFeatureProcessor> processors
protected Locale locale
public FeatureProcessorManager(String localeString) throws MaryConfigurationException
MaryConfigurationException
public FeatureProcessorManager(Locale locale) throws MaryConfigurationException
MaryConfigurationException
public FeatureProcessorManager(Voice voice) throws MaryConfigurationException
voice
- voiceMaryConfigurationException
- MaryConfigurationException@Deprecated public FeatureProcessorManager()
FeatureProcessorManager(Locale)
instead.protected void registerAcousticModels(Voice voice)
voice
- voice@Deprecated protected void setupHardcodedPhoneFeatureValues()
protected void setupGenericFeatureProcessors()
public Locale getLocale()
public String listFeatureProcessorNames()
public String listByteValuedFeatureProcessorNames()
public String listShortValuedFeatureProcessorNames()
public String listContinuousFeatureProcessorNames()
protected void addFeatureProcessor(MaryFeatureProcessor fp)
public MaryFeatureProcessor getFeatureProcessor(String name)
protected void setupPhoneFeatureProcessors(AllophoneSet phoneset, String[] phoneValues, String pauseSymbol, Map<String,String[]> featuresToValues)
phoneset
- the AllophoneSet used for the current locale.phoneValues
- optional. If null, will query phoneset.pauseSymbol
- optional. If null, will query phoneset.featuresToValues
- map listing the possible values for each feature. Optional. If null, will query phoneset.Copyright © 2000–2016 DFKI GmbH. All rights reserved.