public class FeatureRegistry extends Object
Modifier and Type | Method and Description |
---|---|
static FeatureProcessorManager |
determineBestFeatureProcessorManager(Locale locale)
For the given locale, return the best feature manager.
|
static FeatureProcessorManager |
determineBestFeatureProcessorManager(Voice voice)
For the given voice, return the best feature manager.
|
static FeatureProcessorManager |
getFallbackFeatureProcessorManager()
Get the fallback feature processor manager which should be used if there is no voice- or locale-specific feature processor
manager.
|
static FeatureProcessorManager |
getFeatureProcessorManager(Locale locale)
Get the feature processor manager associated with the given locale, if any.
|
static FeatureProcessorManager |
getFeatureProcessorManager(Voice voice)
Get the feature processor manager associated with the given voice, if any.
|
static Collection<Locale> |
getSupportedLocales() |
static TargetFeatureComputer |
getTargetFeatureComputer(FeatureProcessorManager mgr,
String features)
Obtain a TargetFeatureComputer that knows how to compute features for a Target using the given set of feature processor
names.
|
static TargetFeatureComputer |
getTargetFeatureComputer(Locale locale,
String features)
Convenience method for getting a suitable target feature computer for the given locale and list of features.
|
static TargetFeatureComputer |
getTargetFeatureComputer(Voice voice,
String features)
Convenience method for getting a suitable target feature computer for the given voice and list of features.
|
static void |
setFallbackFeatureProcessorManager(FeatureProcessorManager mgr)
Set the given feature processor manager as the one to use when no voice- or locale-specific feature processor manager can
be found.
|
static void |
setFeatureProcessorManager(Locale locale,
FeatureProcessorManager mgr)
Set the given feature processor manager as the one to use for the given locale.
|
static void |
setFeatureProcessorManager(Voice voice,
FeatureProcessorManager mgr)
Set the given feature processor manager as the one to use for the given voice.
|
public static void setFeatureProcessorManager(Locale locale, FeatureProcessorManager mgr)
locale
- localemgr
- mgrpublic static void setFallbackFeatureProcessorManager(FeatureProcessorManager mgr)
mgr
- mgrpublic static void setFeatureProcessorManager(Voice voice, FeatureProcessorManager mgr)
voice
- voicemgr
- mgrpublic static FeatureProcessorManager getFeatureProcessorManager(Voice voice)
voice
- voicepublic static FeatureProcessorManager getFeatureProcessorManager(Locale locale)
locale
- localepublic static FeatureProcessorManager getFallbackFeatureProcessorManager()
public static FeatureProcessorManager determineBestFeatureProcessorManager(Voice voice)
voice
- voicepublic static FeatureProcessorManager determineBestFeatureProcessorManager(Locale locale)
locale
- localepublic static Collection<Locale> getSupportedLocales()
public static TargetFeatureComputer getTargetFeatureComputer(FeatureProcessorManager mgr, String features)
mgr
- mgrfeatures
- a String containing the names of the feature processors to use, separated by white space, and in the right order
(byte-valued discrete feature processors first, then short-valued, then continuous). If features is null, use
all available features processors.IllegalArgumentException
- if one of the features is not known to the managerpublic static TargetFeatureComputer getTargetFeatureComputer(Locale locale, String features)
getFeatureProcessorManager(Locale)
or, if that fails, using
getFallbackFeatureProcessorManager()
.locale
- localefeatures
- a String containing the names of the feature processors to use, separated by white space, and in the right order
(byte-valued discrete feature processors first, then short-valued, then continuous)getTargetFeatureComputer(FeatureProcessorManager, String)
public static TargetFeatureComputer getTargetFeatureComputer(Voice voice, String features)
getFeatureProcessorManager(Voice)
or, if that fails, using
getFeatureProcessorManager(Locale)
using the voice locale or, if that also fails, using
getFallbackFeatureProcessorManager()
.voice
- voicefeatures
- a String containing the names of the feature processors to use, separated by white space, and in the right order
(byte-valued discrete feature processors first, then short-valued, then continuous)getTargetFeatureComputer(FeatureProcessorManager, String)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.