marytts.tools.voiceimport
Class PhoneUnitfileWriter

java.lang.Object
  extended by marytts.tools.voiceimport.VoiceImportComponent
      extended by marytts.tools.voiceimport.PhoneUnitfileWriter
Direct Known Subclasses:
HalfPhoneUnitfileWriter

public class PhoneUnitfileWriter
extends VoiceImportComponent


Field Summary
protected  PhoneLabelFeatureAligner aligner
           
 java.lang.String CORRPMDIR
           
protected  java.lang.String corrPmExt
           
protected  DatabaseLayout db
           
 java.lang.String LABELDIR
           
protected  java.io.File maryDir
           
protected  java.lang.String pauseSymbol
           
protected  int percent
           
protected  int samplingRate
           
 java.lang.String UNITFILE
           
protected  java.lang.String unitFileName
           
protected  java.io.File unitlabelDir
           
protected  java.lang.String unitlabelExt
           
 
Fields inherited from class marytts.tools.voiceimport.VoiceImportComponent
bnl, logger, props, props2Help
 
Constructor Summary
PhoneUnitfileWriter()
           
 
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()
           
 
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

maryDir

protected java.io.File maryDir

unitFileName

protected java.lang.String unitFileName

unitlabelDir

protected java.io.File unitlabelDir

samplingRate

protected int samplingRate

pauseSymbol

protected java.lang.String pauseSymbol

aligner

protected PhoneLabelFeatureAligner aligner

unitlabelExt

protected java.lang.String unitlabelExt

corrPmExt

protected java.lang.String corrPmExt

db

protected DatabaseLayout db

percent

protected int percent

LABELDIR

public java.lang.String LABELDIR

UNITFILE

public java.lang.String UNITFILE

CORRPMDIR

public java.lang.String CORRPMDIR
Constructor Detail

PhoneUnitfileWriter

public PhoneUnitfileWriter()
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

initialiseComp

public void initialiseComp()
                    throws java.lang.Exception
Description copied from class: VoiceImportComponent
Initialise a voice import component: component specific initialisation; to be overwritten by subclasses

Overrides:
initialiseComp in class VoiceImportComponent
Throws:
java.lang.Exception

getDefaultProps

public java.util.SortedMap getDefaultProps(DatabaseLayout db)
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
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

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
Throws:
java.lang.Exception