de.dfki.lt.mary.unitselection.voiceimport
Class WaveTimelineMaker

java.lang.Object
  extended by de.dfki.lt.mary.unitselection.voiceimport.VoiceImportComponent
      extended by de.dfki.lt.mary.unitselection.voiceimport.WaveTimelineMaker

public class WaveTimelineMaker
extends VoiceImportComponent

The WaveTimelineMaker class takes a database root directory and a list of basenames, and split the waveforms as datagrams to be stored in a timeline in Mary format.

Author:
sacha

Field Summary
 java.lang.String CORRPMDIR
           
protected  java.lang.String corrPmExt
           
protected  DatabaseLayout db
           
protected  int percent
           
 java.lang.String WAVETIMELINE
           
 
Fields inherited from class de.dfki.lt.mary.unitselection.voiceimport.VoiceImportComponent
bnl, props, props2Help
 
Constructor Summary
WaveTimelineMaker()
           
 
Method Summary
 boolean compute()
          Reads and concatenates a list of waveforms into one single timeline file.
 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.
protected  void setupHelp()
           
 
Methods inherited from class de.dfki.lt.mary.unitselection.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

db

protected DatabaseLayout db

percent

protected int percent

corrPmExt

protected java.lang.String corrPmExt

CORRPMDIR

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

WAVETIMELINE

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

WaveTimelineMaker

public WaveTimelineMaker()
Method Detail

getName

public final 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 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()
Reads and concatenates a list of waveforms into one single timeline file.

Specified by:
compute in class VoiceImportComponent
Returns:
true on success, false on failure

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.