marytts.modules
Class HMMDurationF0Modeller

java.lang.Object
  extended by marytts.modules.InternalModule
      extended by marytts.modules.HMMDurationF0Modeller
All Implemented Interfaces:
MaryModule

Deprecated.

public class HMMDurationF0Modeller
extends InternalModule

This modeller uses the HMMs of the provided hmmVoice. This modeller can be set as preferred module in the configuration file, for example: voice.unitSelection.preferredModules = \ marytts.modules.HMMDurationF0Modeller(local,hmmVoice)

Author:
marcela

Field Summary
protected  TargetFeatureComputer featureComputer
          Deprecated.  
 
Fields inherited from class marytts.modules.InternalModule
logger, state
 
Fields inherited from interface marytts.modules.MaryModule
MODULE_OFFLINE, MODULE_RUNNING
 
Constructor Summary
HMMDurationF0Modeller(java.util.Locale locale, java.lang.String hmmVoiceName, FeatureProcessorManager featureProcessorManager)
          Deprecated.  
HMMDurationF0Modeller(java.lang.String locale, java.lang.String hmmVoiceName)
          Deprecated.  
 
Method Summary
 java.lang.String HmmF0Generation(HTSUttModel um, HMMData htsData)
          Deprecated. Generate F0 values for voiced frames out of HMMs
 MaryData process(MaryData d)
          Deprecated. Perform this module's processing on abstract "MaryData" input d.
 void setActualDurations(org.w3c.dom.traversal.TreeWalker tw, java.lang.String durations)
          Deprecated. Set durations
 void setActualDurationsAndF0s(org.w3c.dom.traversal.TreeWalker tw, java.lang.String durF0s)
          Deprecated. Set durations and f0 values The meaning of f0="(X,Y)" is: at X% of the phone duration, the F0 value is Y Hz.
 void startup()
          Deprecated. Allow the module to start up, performing whatever is necessary to become operational.
 
Methods inherited from class marytts.modules.InternalModule
getLocale, getState, inputType, name, outputType, powerOnSelfTest, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

featureComputer

protected TargetFeatureComputer featureComputer
Deprecated. 
Constructor Detail

HMMDurationF0Modeller

public HMMDurationF0Modeller(java.lang.String locale,
                             java.lang.String hmmVoiceName)
                      throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception

HMMDurationF0Modeller

public HMMDurationF0Modeller(java.util.Locale locale,
                             java.lang.String hmmVoiceName,
                             FeatureProcessorManager featureProcessorManager)
Deprecated. 
Method Detail

startup

public void startup()
             throws java.lang.Exception
Deprecated. 
Description copied from interface: MaryModule
Allow the module to start up, performing whatever is necessary to become operational. After successful completion, getState() should return MODULE_RUNNING.

Specified by:
startup in interface MaryModule
Overrides:
startup in class InternalModule
Throws:
java.lang.Exception

process

public MaryData process(MaryData d)
                 throws java.lang.Exception
Deprecated. 
Description copied from class: InternalModule
Perform this module's processing on abstract "MaryData" input d. Subclasses need to make sure that the process() method is thread-safe, because in server-mode, it will be called from different threads at the same time. A sensible way to do this seems to be not to use any global or static variables, or to use them read-only.

Specified by:
process in interface MaryModule
Overrides:
process in class InternalModule
Returns:
A MaryData object of type outputType() encapsulating the processing result.

This method just returns its input. Subclasses should override this.

Throws:
java.lang.Exception

HmmF0Generation

public java.lang.String HmmF0Generation(HTSUttModel um,
                                        HMMData htsData)
                                 throws java.lang.Exception
Deprecated. 
Generate F0 values for voiced frames out of HMMs

Parameters:
um - HTSUttModel, linked list of model objects
htsData - HMMData
Returns:
Throws:
java.lang.Exception

setActualDurations

public void setActualDurations(org.w3c.dom.traversal.TreeWalker tw,
                               java.lang.String durations)
                        throws SynthesisException
Deprecated. 
Set durations

Parameters:
tw -
durations -
Throws:
SynthesisException

setActualDurationsAndF0s

public void setActualDurationsAndF0s(org.w3c.dom.traversal.TreeWalker tw,
                                     java.lang.String durF0s)
                              throws SynthesisException
Deprecated. 
Set durations and f0 values The meaning of f0="(X,Y)" is: at X% of the phone duration, the F0 value is Y Hz.

Parameters:
tw - treewalker
durF0s - String containing in each line one phoneme its duration and its F0 values if it is voiced or 0 if it is unvoiced
Throws:
SynthesisException