|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.tools.voiceimport.VoiceImportComponent
marytts.tools.voiceimport.PhoneFeatureFileWriter
public class PhoneFeatureFileWriter
| Field Summary | |
|---|---|
protected FeatureDefinition |
featureDefinition
|
java.lang.String |
FEATUREDIR
|
protected java.lang.String |
featureExt
|
java.lang.String |
FEATUREFILE
|
protected java.io.File |
maryDir
|
protected java.lang.String |
name
|
protected int |
percent
|
java.lang.String |
UNITFILE
|
protected UnitFileReader |
unitFileReader
|
java.lang.String |
WEIGHTSFILE
|
| Fields inherited from class marytts.tools.voiceimport.VoiceImportComponent |
|---|
bnl, logger, props, props2Help |
| Constructor Summary | |
|---|---|
PhoneFeatureFileWriter()
|
|
| Method Summary | |
|---|---|
boolean |
compute()
Do the computations required by this component. |
java.util.SortedMap |
getDefaultProps(DatabaseLayout db)
Get the map of properties2values containing the default values |
java.lang.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 |
static void |
main(java.lang.String[] args)
|
protected void |
setupHelp()
|
protected void |
writeHeaderTo(java.io.DataOutput out)
Write the header of this feature file to the given DataOutput |
protected void |
writeUnitFeaturesTo(java.io.DataOutput out)
|
| Methods inherited from class marytts.tools.voiceimport.VoiceImportComponent |
|---|
getHelpText, getHelpTextForProp, getProp, initialise, setProp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.io.File maryDir
protected FeatureDefinition featureDefinition
protected int percent
protected java.lang.String featureExt
protected UnitFileReader unitFileReader
protected java.lang.String name
public java.lang.String FEATUREDIR
public java.lang.String FEATUREFILE
public java.lang.String UNITFILE
public java.lang.String WEIGHTSFILE
| Constructor Detail |
|---|
public PhoneFeatureFileWriter()
| Method Detail |
|---|
public java.lang.String getName()
VoiceImportComponent
getName in class VoiceImportComponentpublic void initialiseComp()
VoiceImportComponent
initialiseComp in class VoiceImportComponentpublic java.util.SortedMap getDefaultProps(DatabaseLayout db)
VoiceImportComponent
getDefaultProps in class VoiceImportComponentprotected void setupHelp()
setupHelp in class VoiceImportComponent
public boolean compute()
throws java.io.IOException,
MaryConfigurationException
VoiceImportComponent
compute in class VoiceImportComponentjava.io.IOException
MaryConfigurationException
protected void writeUnitFeaturesTo(java.io.DataOutput out)
throws java.io.IOException,
java.io.UnsupportedEncodingException,
java.io.FileNotFoundException
out -
java.io.IOException
java.io.UnsupportedEncodingException
java.io.FileNotFoundException
protected void writeHeaderTo(java.io.DataOutput out)
throws java.io.IOException
out -
java.io.IOExceptionpublic int getProgress()
getProgress in class VoiceImportComponent
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||