public static class VoiceCompiler.MavenVoiceCompiler extends Object
Modifier and Type | Field and Description |
---|---|
protected File |
compileDir |
protected String |
domain |
protected Map<String,String> |
extraVariablesToSubstitute |
protected File[] |
filesForFilesystem |
protected File[] |
filesForResources |
protected String |
gender |
protected boolean |
isUnitSelectionVoice |
protected File |
libVoiceDir |
protected Locale |
locale |
protected File |
mainDescriptionsDir |
protected File |
mainJavaDir |
protected File |
mainResourcesDir |
protected File |
metaInfDir |
protected String |
mvn |
protected File |
nonPackagedResourcesDir |
protected int |
samplingRate |
protected org.apache.commons.lang.text.StrSubstitutor |
substitutor |
protected File |
testJavaDir |
protected String |
voiceName |
protected String |
voiceVersion |
Constructor and Description |
---|
VoiceCompiler.MavenVoiceCompiler(File compileDir,
String voiceName,
String voiceVersion,
Locale locale,
String gender,
String domain,
int samplingRate,
boolean isUnitSelectionVoice,
File[] filesForResources,
File[] filesForFilesystem,
Map<String,String> extraVariablesToSubstitute)
Deprecated.
Use constructor with path to Maven instead.
|
VoiceCompiler.MavenVoiceCompiler(String mvn,
File compileDir,
String voiceName,
String voiceVersion,
Locale locale,
String gender,
String domain,
int samplingRate,
boolean isUnitSelectionVoice,
File[] filesForResources,
File[] filesForFilesystem,
Map<String,String> extraVariablesToSubstitute) |
Modifier and Type | Method and Description |
---|---|
void |
compileWithMaven() |
void |
copyTemplateFiles() |
void |
copyVoiceFiles() |
void |
createDirectories() |
File |
getConfigFile() |
File |
getMainResourcesDir() |
String |
getPackageName() |
protected Map<String,String> |
getVariableSubstitutionMap(Map<String,String> extra) |
void |
setFilesForResources(File[] filesForResources) |
protected File compileDir
protected String voiceName
protected String voiceVersion
protected Locale locale
protected String gender
protected String domain
protected int samplingRate
protected boolean isUnitSelectionVoice
protected File[] filesForResources
protected File[] filesForFilesystem
protected org.apache.commons.lang.text.StrSubstitutor substitutor
protected File mainJavaDir
protected File mainResourcesDir
protected File nonPackagedResourcesDir
protected File mainDescriptionsDir
protected File metaInfDir
protected File testJavaDir
protected File libVoiceDir
protected String mvn
@Deprecated public VoiceCompiler.MavenVoiceCompiler(File compileDir, String voiceName, String voiceVersion, Locale locale, String gender, String domain, int samplingRate, boolean isUnitSelectionVoice, File[] filesForResources, File[] filesForFilesystem, Map<String,String> extraVariablesToSubstitute)
compileDir
- compileDirvoiceName
- voiceNamevoiceVersion
- voiceVersionlocale
- localegender
- genderdomain
- domainsamplingRate
- samplingRateisUnitSelectionVoice
- isUnitSelectionVoicefilesForResources
- filesForResourcesfilesForFilesystem
- filesForFilesystemextraVariablesToSubstitute
- extraVariablesToSubstitutepublic VoiceCompiler.MavenVoiceCompiler(String mvn, File compileDir, String voiceName, String voiceVersion, Locale locale, String gender, String domain, int samplingRate, boolean isUnitSelectionVoice, File[] filesForResources, File[] filesForFilesystem, Map<String,String> extraVariablesToSubstitute)
protected Map<String,String> getVariableSubstitutionMap(Map<String,String> extra)
public void createDirectories() throws IOException
IOException
public void copyTemplateFiles() throws IOException
IOException
public void setFilesForResources(File[] filesForResources)
public File getConfigFile()
public File getMainResourcesDir()
public void copyVoiceFiles() throws IOException
IOException
public void compileWithMaven() throws IOException, InterruptedException
IOException
InterruptedException
public String getPackageName()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.