public class F0PolynomialFeatureFileWriter extends VoiceImportComponent
Modifier and Type | Field and Description |
---|---|
protected TimelineReader |
audio |
protected DatabaseLayout |
db |
String |
F0FEATUREFILE |
String |
FEATUREFILE |
protected FeatureFileReader |
features |
String |
INTERPOLATE |
String |
ISHNMTIMELINE |
protected File |
maryDir |
String |
MAXPITCH |
String |
MINPITCH |
protected FeatureDefinition |
outFeatureDefinition |
protected File |
outFeatureFile |
protected int |
percent |
String |
POLYNOMORDER |
String |
SHOWGRAPH |
String |
UNITFILE |
protected UnitFileReader |
units |
String |
WAVETIMELINE |
bnl, logger, props, props2Help
Constructor and Description |
---|
F0PolynomialFeatureFileWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Do the computations required by this component.
|
SortedMap<String,String> |
getDefaultProps(DatabaseLayout theDb)
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.
|
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)
Compute the polynomial unit features and write them to the given data output.
|
getHelpText, getHelpTextForProp, getProp, initialise, initialiseComp, setProp
protected File maryDir
protected FeatureFileReader features
protected File outFeatureFile
protected FeatureDefinition outFeatureDefinition
protected UnitFileReader units
protected TimelineReader audio
protected DatabaseLayout db
protected int percent
public final String UNITFILE
public final String WAVETIMELINE
public final String ISHNMTIMELINE
public final String FEATUREFILE
public final String F0FEATUREFILE
public final String POLYNOMORDER
public final String SHOWGRAPH
public final String INTERPOLATE
public final String MINPITCH
public final String MAXPITCH
public String getName()
VoiceImportComponent
getName
in class VoiceImportComponent
public SortedMap<String,String> getDefaultProps(DatabaseLayout theDb)
VoiceImportComponent
getDefaultProps
in class VoiceImportComponent
theDb
- dbprotected void setupHelp()
setupHelp
in class VoiceImportComponent
public boolean compute() throws IOException, MaryConfigurationException
VoiceImportComponent
compute
in class VoiceImportComponent
IOException
MaryConfigurationException
protected void writeUnitFeaturesTo(DataOutput out) throws IOException, UnsupportedEncodingException, FileNotFoundException
out
- outIOException
- IOExceptionUnsupportedEncodingException
- UnsupportedEncodingExceptionFileNotFoundException
- FileNotFoundExceptionprotected void writeHeaderTo(DataOutput out) throws IOException
out
- outIOException
- IOExceptionpublic int getProgress()
getProgress
in class VoiceImportComponent
Copyright © 2000–2016 DFKI GmbH. All rights reserved.