marytts.tools.voiceimport
Class AcousticFeatureFileWriter

java.lang.Object
  extended by marytts.tools.voiceimport.VoiceImportComponent
      extended by marytts.tools.voiceimport.AcousticFeatureFileWriter

public class AcousticFeatureFileWriter
extends VoiceImportComponent


Field Summary
 java.lang.String ACFEATDEF
           
 java.lang.String ACFEATUREFILE
           
 java.lang.String CONTOURFILE
           
protected  FeatureFileReader contours
           
protected  DatabaseLayout db
           
protected  FeatureFileReader feats
           
 java.lang.String FEATUREFILE
           
protected  FeatureDefinition inFeatureDefinition
           
protected  java.io.File maryDir
           
protected  FeatureDefinition outFeatureDefinition
           
protected  java.io.File outFeatureFile
           
protected  int percent
           
 java.lang.String UNITFILE
           
protected  UnitFileReader unitFileReader
           
 
Fields inherited from class marytts.tools.voiceimport.VoiceImportComponent
bnl, logger, props, props2Help
 
Constructor Summary
AcousticFeatureFileWriter()
           
 
Method Summary
 boolean compute()
          Do the computations required by this component.
 java.util.SortedMap<java.lang.String,java.lang.String> getDefaultProps(DatabaseLayout theDb)
          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.
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, initialiseComp, setProp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maryDir

protected java.io.File maryDir

feats

protected FeatureFileReader feats

inFeatureDefinition

protected FeatureDefinition inFeatureDefinition

outFeatureFile

protected java.io.File outFeatureFile

outFeatureDefinition

protected FeatureDefinition outFeatureDefinition

unitFileReader

protected UnitFileReader unitFileReader

contours

protected FeatureFileReader contours

db

protected DatabaseLayout db

percent

protected int percent

UNITFILE

public final java.lang.String UNITFILE
See Also:
Constant Field Values

CONTOURFILE

public final java.lang.String CONTOURFILE
See Also:
Constant Field Values

FEATUREFILE

public final java.lang.String FEATUREFILE
See Also:
Constant Field Values

ACFEATUREFILE

public final java.lang.String ACFEATUREFILE
See Also:
Constant Field Values

ACFEATDEF

public final java.lang.String ACFEATDEF
See Also:
Constant Field Values
Constructor Detail

AcousticFeatureFileWriter

public AcousticFeatureFileWriter()
Method Detail

getName

public java.lang.String getName()
Description copied from class: VoiceImportComponent
Get the name of this component

Specified by:
getName in class VoiceImportComponent
Returns:
the name

getDefaultProps

public java.util.SortedMap<java.lang.String,java.lang.String> getDefaultProps(DatabaseLayout theDb)
Description copied from class: VoiceImportComponent
Get the map of properties2values containing the default values

Specified by:
getDefaultProps in class VoiceImportComponent
Returns:
map of props2values

setupHelp

protected void setupHelp()
Specified by:
setupHelp in class VoiceImportComponent

compute

public boolean compute()
                throws java.io.IOException,
                       MaryConfigurationException
Description copied from class: VoiceImportComponent
Do the computations required by this component.

Specified by:
compute in class VoiceImportComponent
Returns:
true on success, false on failure
Throws:
java.io.IOException
MaryConfigurationException

writeUnitFeaturesTo

protected void writeUnitFeaturesTo(java.io.DataOutput out)
                            throws java.io.IOException,
                                   java.io.UnsupportedEncodingException,
                                   java.io.FileNotFoundException
Parameters:
out -
Throws:
java.io.IOException
java.io.UnsupportedEncodingException
java.io.FileNotFoundException

writeHeaderTo

protected void writeHeaderTo(java.io.DataOutput out)
                      throws java.io.IOException
Write the header of this feature file to the given DataOutput

Parameters:
out -
Throws:
java.io.IOException

getProgress

public int getProgress()
Provide the progress of computation, in percent, or -1 if that feature is not implemented.

Specified by:
getProgress in class VoiceImportComponent
Returns:
-1 if not implemented, or an integer between 0 and 100.

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args -
Throws:
java.lang.Exception