marytts.tools.voiceimport
Class DurationTreeTrainer

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

public class DurationTreeTrainer
extends VoiceImportComponent

A class which converts a text file in festvox format into a one-file-per-utterance format in a given directory.

Author:
schroed

Field Summary
protected  DatabaseLayout db
           
 java.lang.String DURTREE
           
 java.lang.String FEATUREFILE
           
 java.lang.String MAXDATA
           
 java.lang.String PROPORTIONTESTDATA
           
 java.lang.String UNITFILE
           
 
Fields inherited from class marytts.tools.voiceimport.VoiceImportComponent
bnl, logger, props, props2Help
 
Constructor Summary
DurationTreeTrainer()
           
 
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.
 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

db

protected DatabaseLayout db

DURTREE

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

FEATUREFILE

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

UNITFILE

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

MAXDATA

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

PROPORTIONTESTDATA

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

DurationTreeTrainer

public DurationTreeTrainer()
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()
Description copied from class: VoiceImportComponent
Initialise a voice import component: component specific initialisation; to be overwritten by subclasses

Overrides:
initialiseComp in class VoiceImportComponent

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

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