public class VocalizationFeatureFileWriter extends VoiceImportComponent
| Modifier and Type | Field and Description |
|---|---|
protected BasenameList |
bnlVocalizations |
protected DatabaseLayout |
db |
String |
FEATDEF |
protected FeatureDefinition |
featureDefinition |
String |
FEATUREFILE |
String |
INTERPOLATE |
protected VocalizationUnitFileReader |
listenerUnits |
String |
MANUALFEATURES |
String |
MAXPITCH |
String |
MINPITCH |
protected File |
outFeatureFile |
protected int |
percent |
String |
POLYNOMORDER |
String |
SHOWGRAPH |
String |
UNITFILE |
protected String |
vocalizationsDir |
bnl, logger, props, props2Help| Constructor and Description |
|---|
VocalizationFeatureFileWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compute()
Do the computations required by this component.
|
SortedMap<String,String> |
getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values
|
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
|
static void |
main(String[] args) |
protected void |
setupHelp() |
protected void |
writeHeaderTo(DataOutput out)
Write the header of this feature file to the given DataOutput
|
protected void |
writeUnitFeaturesTo(DataOutput out) |
getHelpText, getHelpTextForProp, getProp, initialise, setPropprotected File outFeatureFile
protected FeatureDefinition featureDefinition
protected VocalizationUnitFileReader listenerUnits
protected DatabaseLayout db
protected int percent
protected String vocalizationsDir
protected BasenameList bnlVocalizations
public final String UNITFILE
public final String FEATUREFILE
public final String MANUALFEATURES
public final String FEATDEF
public final String POLYNOMORDER
public final String SHOWGRAPH
public final String INTERPOLATE
public final String MINPITCH
public final String MAXPITCH
public String getName()
VoiceImportComponentgetName in class VoiceImportComponentpublic SortedMap<String,String> getDefaultProps(DatabaseLayout db)
VoiceImportComponentgetDefaultProps in class VoiceImportComponentdb - dbprotected void setupHelp()
setupHelp in class VoiceImportComponentprotected void initialiseComp()
VoiceImportComponentinitialiseComp in class VoiceImportComponentpublic boolean compute()
throws IOException,
MaryConfigurationException
VoiceImportComponentcompute in class VoiceImportComponentIOExceptionMaryConfigurationExceptionprotected void writeUnitFeaturesTo(DataOutput out) throws IOException, UnsupportedEncodingException, FileNotFoundException
protected void writeHeaderTo(DataOutput out) throws IOException
out - outIOException - IOExceptionpublic int getProgress()
getProgress in class VoiceImportComponentCopyright © 2000–2016 DFKI GmbH. All rights reserved.