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, setPropprotected 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()
VoiceImportComponentgetName in class VoiceImportComponentprotected void initialiseComp()
VoiceImportComponentinitialiseComp in class VoiceImportComponentpublic SortedMap<String,String> getDefaultProps(DatabaseLayout theDb)
VoiceImportComponentgetDefaultProps in class VoiceImportComponenttheDb - dbprotected void setupHelp()
setupHelp in class VoiceImportComponentpublic MaryHttpClient getMaryClient() throws IOException
IOExceptionpublic boolean compute()
throws IOException,
MaryConfigurationException
VoiceImportComponentcompute in class VoiceImportComponentIOExceptionMaryConfigurationExceptionpublic void generateAllophonesFile(String basename) throws IOException, MaryConfigurationException
basename - basenameIOException - IOExceptionMaryConfigurationException - MaryConfigurationExceptionpublic static String getMaryXMLHeaderWithInitialBoundary(String locale)
public int getProgress()
getProgress in class VoiceImportComponentCopyright © 2000–2016 DFKI GmbH. All rights reserved.