public class VoiceCompiler extends VoiceImportComponent
Modifier and Type | Class and Description |
---|---|
static class |
VoiceCompiler.MavenVoiceCompiler |
Modifier and Type | Field and Description |
---|---|
static String |
BASETIMELINE |
static String |
CARTFILE |
String |
COMPILEDIR |
protected VoiceCompiler.MavenVoiceCompiler |
compiler |
static String |
DURTREE |
static String |
F0LEFTTREE |
static String |
F0MIDTREE |
static String |
F0RIGHTTREE |
static String |
HALFPHONEFEATDEFAC |
static String |
HALFPHONEFEATSAC |
static String |
HALFPHONEUNITS |
static String |
JOINCOSTFEATS |
static String |
JOINCOSTWEIGHTS |
String |
MVN |
static String |
PHONEFEATDEF |
static String |
WAVETIMELINE |
bnl, db, logger, props, props2Help
Constructor and Description |
---|
VoiceCompiler() |
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Do the computations required by this component.
|
protected VoiceCompiler.MavenVoiceCompiler |
createCompiler(File compileDir) |
SortedMap<String,String> |
getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values
|
protected Map<String,String> |
getExtraVariableSubstitutionMap() |
protected File[] |
getFilesForFilesystem() |
protected File[] |
getFilesForResources() |
String |
getName()
Get the name of this component
|
int |
getProgress()
Provide the progress of computation, in percent, or -1 if that feature is not implemented.
|
protected String |
getVoiceName(DatabaseLayout db) |
protected boolean |
isUnitSelectionVoice() |
protected void |
mapFeatures() |
protected void |
setupHelp() |
static String |
toPackageName(String voiceName)
Convert an arbitrary string into a valid java package name, as follows: - any characters that are not alphanumeric or
underscore are deleted; - if the first character after a deleted one is a letter, it is capitalised.
|
getHelpText, getHelpTextForProp, getProp, initialise, initialiseComp, setProp
public static final String CARTFILE
public static final String DURTREE
public static final String F0LEFTTREE
public static final String F0MIDTREE
public static final String F0RIGHTTREE
public static final String HALFPHONEFEATSAC
public static final String HALFPHONEFEATDEFAC
public static final String HALFPHONEUNITS
public static final String JOINCOSTFEATS
public static final String JOINCOSTWEIGHTS
public static final String PHONEFEATDEF
public static final String WAVETIMELINE
public static final String BASETIMELINE
public final String COMPILEDIR
public final String MVN
protected VoiceCompiler.MavenVoiceCompiler compiler
public boolean compute() throws Exception
VoiceImportComponent
compute
in class VoiceImportComponent
Exception
- Exceptionprotected boolean isUnitSelectionVoice()
public SortedMap<String,String> getDefaultProps(DatabaseLayout db)
VoiceImportComponent
getDefaultProps
in class VoiceImportComponent
db
- dbprotected String getVoiceName(DatabaseLayout db)
public String getName()
VoiceImportComponent
getName
in class VoiceImportComponent
public int getProgress()
VoiceImportComponent
getProgress
in class VoiceImportComponent
protected void setupHelp()
setupHelp
in class VoiceImportComponent
protected File[] getFilesForResources()
protected File[] getFilesForFilesystem()
protected VoiceCompiler.MavenVoiceCompiler createCompiler(File compileDir)
public static String toPackageName(String voiceName)
voiceName
- voiceNameCopyright © 2000–2016 DFKI GmbH. All rights reserved.