public class PauseFeatureComputer extends VoiceImportComponent
Modifier and Type | Field and Description |
---|---|
protected DatabaseLayout |
db |
protected String |
featsExt |
String |
FEATUREDIR |
String |
INTONISED |
protected String |
locale |
protected MaryClient |
mary |
protected String |
maryInputType |
protected String |
maryOutputType |
String |
MARYSERVERHOST |
String |
MARYSERVERPORT |
protected File |
pausefeatureDir |
protected int |
percent |
protected File |
textDir |
protected String |
xmlExt |
bnl, logger, props, props2Help
Constructor and Description |
---|
PauseFeatureComputer() |
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Do the computations required by this component.
|
void |
computeFeaturesFor(String basename) |
SortedMap |
getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values
|
MaryClient |
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.
|
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 pausefeatureDir
protected String featsExt
protected String xmlExt
protected String locale
protected MaryClient mary
protected String maryInputType
protected String maryOutputType
protected DatabaseLayout db
protected int percent
public String FEATUREDIR
public String INTONISED
public String MARYSERVERHOST
public String MARYSERVERPORT
public String getName()
VoiceImportComponent
getName
in class VoiceImportComponent
public static String getMaryXMLHeaderWithInitialBoundary(String locale)
public void initialiseComp()
VoiceImportComponent
initialiseComp
in class VoiceImportComponent
public SortedMap getDefaultProps(DatabaseLayout db)
VoiceImportComponent
getDefaultProps
in class VoiceImportComponent
db
- dbprotected void setupHelp()
setupHelp
in class VoiceImportComponent
public MaryClient getMaryClient() throws IOException
IOException
public boolean compute() throws IOException
VoiceImportComponent
compute
in class VoiceImportComponent
IOException
public void computeFeaturesFor(String basename) throws IOException
IOException
public int getProgress()
getProgress
in class VoiceImportComponent
Copyright © 2000–2016 DFKI GmbH. All rights reserved.