public class AllophonesExtractor extends VoiceImportComponent
Modifier and Type | Field and Description |
---|---|
protected DatabaseLayout |
db |
protected String |
featsExt |
protected String |
locale |
protected MaryHttpClient |
mary |
protected String |
maryInputType |
protected String |
maryOutputType |
protected int |
percent |
protected File |
promptAllophonesDir |
protected BasenameClassificationDefinitionFileReader |
styleDefinition |
String |
STYLEDEFINITIONFILE |
protected File |
textDir |
bnl, logger, props, props2Help
Constructor and Description |
---|
AllophonesExtractor() |
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Do the computations required by this component.
|
void |
generateAllophonesFile(String basename) |
SortedMap<String,String> |
getDefaultProps(DatabaseLayout theDb)
Get the map of properties2values containing the default values
|
MaryHttpClient |
getMaryClient() |
static String |
getMaryXMLHeaderWithInitialBoundary(String locale) |
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 void |
initialiseComp()
Initialise a voice import component: component specific initialisation; to be overwritten by subclasses
|
protected void |
setupHelp() |
getHelpText, getHelpTextForProp, getProp, initialise, setProp
protected File textDir
protected File promptAllophonesDir
protected String featsExt
protected String locale
protected MaryHttpClient mary
protected String maryInputType
protected String maryOutputType
protected DatabaseLayout db
protected int percent
public String STYLEDEFINITIONFILE
protected BasenameClassificationDefinitionFileReader styleDefinition
public String getName()
VoiceImportComponent
getName
in class VoiceImportComponent
protected void initialiseComp()
VoiceImportComponent
initialiseComp
in class VoiceImportComponent
public SortedMap<String,String> getDefaultProps(DatabaseLayout theDb)
VoiceImportComponent
getDefaultProps
in class VoiceImportComponent
theDb
- dbprotected void setupHelp()
setupHelp
in class VoiceImportComponent
public MaryHttpClient getMaryClient() throws IOException
IOException
public boolean compute() throws IOException, MaryConfigurationException
VoiceImportComponent
compute
in class VoiceImportComponent
IOException
MaryConfigurationException
public void generateAllophonesFile(String basename) throws IOException, MaryConfigurationException
basename
- basenameIOException
- IOExceptionMaryConfigurationException
- MaryConfigurationExceptionpublic static String getMaryXMLHeaderWithInitialBoundary(String locale)
public int getProgress()
getProgress
in class VoiceImportComponent
Copyright © 2000–2016 DFKI GmbH. All rights reserved.