public class PhoneFeatureFileWriter extends VoiceImportComponent
Modifier and Type | Field and Description |
---|---|
protected FeatureDefinition |
featureDefinition |
String |
FEATUREDIR |
protected String |
featureExt |
String |
FEATUREFILE |
protected File |
maryDir |
protected String |
name |
protected int |
percent |
String |
UNITFILE |
protected UnitFileReader |
unitFileReader |
String |
WEIGHTSFILE |
bnl, db, logger, props, props2Help
Constructor and Description |
---|
PhoneFeatureFileWriter() |
Modifier and Type | Method and Description |
---|---|
boolean |
compute()
Do the computations required by this component.
|
SortedMap |
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, setProp
protected File maryDir
protected FeatureDefinition featureDefinition
protected int percent
protected String featureExt
protected UnitFileReader unitFileReader
protected String name
public String FEATUREDIR
public String FEATUREFILE
public String UNITFILE
public String WEIGHTSFILE
public String getName()
VoiceImportComponent
getName
in class VoiceImportComponent
protected 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 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.