marytts.tools.voiceimport
Class EndpointDetector

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

public class EndpointDetector
extends VoiceImportComponent

Identify and Remove End-ponints (intitial and final silences) from given set of wave files.

Author:
Sathish and Oytun

Field Summary
protected  DatabaseLayout db
           
 java.lang.String ENERGYBUFFERLENGTH
           
protected  java.io.File inputWavDir
           
 java.lang.String INPUTWAVDIR
           
 java.lang.String MINIMUMENDSILENCEINSECONDS
           
 java.lang.String MINIMUMSTARTSILENCEINSECONDS
           
 java.lang.String NUMENERGYCLUSTERS
           
protected  java.io.File outputWavDir
           
 java.lang.String OUTPUTWAVDIR
           
protected  int percent
           
 java.lang.String SHIFTFROMMINIMUMENERGYCENTER
           
 java.lang.String SPEECHENDLIKELIHOOD
           
 java.lang.String SPEECHSTARTLIKELIHOOD
           
protected  java.io.File textDir
           
protected  java.lang.String waveExt
           
 
Fields inherited from class marytts.tools.voiceimport.VoiceImportComponent
bnl, logger, props, props2Help
 
Constructor Summary
EndpointDetector()
           
 
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
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

textDir

protected java.io.File textDir

inputWavDir

protected java.io.File inputWavDir

outputWavDir

protected java.io.File outputWavDir

waveExt

protected java.lang.String waveExt

db

protected DatabaseLayout db

percent

protected int percent

INPUTWAVDIR

public java.lang.String INPUTWAVDIR

OUTPUTWAVDIR

public java.lang.String OUTPUTWAVDIR

ENERGYBUFFERLENGTH

public java.lang.String ENERGYBUFFERLENGTH

SPEECHSTARTLIKELIHOOD

public java.lang.String SPEECHSTARTLIKELIHOOD

SPEECHENDLIKELIHOOD

public java.lang.String SPEECHENDLIKELIHOOD

SHIFTFROMMINIMUMENERGYCENTER

public java.lang.String SHIFTFROMMINIMUMENERGYCENTER

NUMENERGYCLUSTERS

public java.lang.String NUMENERGYCLUSTERS

MINIMUMSTARTSILENCEINSECONDS

public java.lang.String MINIMUMSTARTSILENCEINSECONDS

MINIMUMENDSILENCEINSECONDS

public java.lang.String MINIMUMENDSILENCEINSECONDS
Constructor Detail

EndpointDetector

public EndpointDetector()
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,
                       javax.sound.sampled.UnsupportedAudioFileException
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
javax.sound.sampled.UnsupportedAudioFileException

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.