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

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

public class SphinxLabelingPreparator
extends VoiceImportComponent

Preparate the directory of the voice for sphinx labelling

Author:
Anna Hunecke

Field Summary
 java.lang.String ESTDIR
           
 java.lang.String MARYSERVERHOST
           
 java.lang.String MARYSERVERPORT
           
 java.lang.String SPHINXTRAINDIR
           
 java.lang.String STDIR
           
 java.lang.String TRANSCRIPTFILE
           
 
Fields inherited from class de.dfki.lt.mary.unitselection.voiceimport.VoiceImportComponent
bnl, props, props2Help
 
Constructor Summary
SphinxLabelingPreparator()
           
 
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
protected  void setupHelp()
           
 
Methods inherited from class de.dfki.lt.mary.unitselection.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

STDIR

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

SPHINXTRAINDIR

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

ESTDIR

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

TRANSCRIPTFILE

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

MARYSERVERHOST

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

MARYSERVERPORT

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

SphinxLabelingPreparator

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

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

compute

public boolean compute()
                throws java.lang.Exception
Do the computations required by this component.

Specified by:
compute in class VoiceImportComponent
Returns:
true on success, false on failure
Throws:
java.lang.Exception

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.