marytts.htsengine
Class HTSParameterGeneration

java.lang.Object
  extended by marytts.htsengine.HTSParameterGeneration

public class HTSParameterGeneration
extends java.lang.Object

Parameter generation out of trained HMMs. Java port and extension of HTS engine version 2.0 Extension: mixed excitation

Author:
Marcela Charfuelan

Field Summary
static double INFTY
           
static double INFTY2
           
static double INVINF
           
static double INVINF2
           
static double LTPI
           
 
Constructor Summary
HTSParameterGeneration()
           
 
Method Summary
 double getLf0(int i, int j)
           
 int getLf0Order()
           
 HTSPStream getlf0Pst()
           
 double getMag(int i, int j)
           
 int getMagOrder()
           
 HTSPStream getMagPst()
           
 double getMcep(int i, int j)
           
 int getMcepOrder()
           
 HTSPStream getMcepPst()
           
 int getMcepT()
           
 double getStr(int i, int j)
           
 int getStrOrder()
           
 HTSPStream getStrPst()
           
 boolean getVoiced(int i)
           
 boolean[] getVoicedArray()
           
 void htsMaximumLikelihoodParameterGeneration(HTSUttModel um, HMMData htsData, java.lang.String parFileName, boolean debug)
          HTS maximum likelihood parameter generation
 void loadUnitLogF0ContinuousFeature(HTSUttModel um)
           
 void saveParam(java.lang.String fileName, HTSPStream par, int type)
           
 void saveParamMaryFormat(java.lang.String fileName, HTSPStream par, int type)
           
 void setlf0Pst(HTSPStream var)
           
 void setMcepPst(HTSPStream var)
           
 void setVoiced(int i, boolean bval)
           
 void setVoicedArray(boolean[] var)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFTY

public static final double INFTY
See Also:
Constant Field Values

INFTY2

public static final double INFTY2
See Also:
Constant Field Values

INVINF

public static final double INVINF
See Also:
Constant Field Values

INVINF2

public static final double INVINF2
See Also:
Constant Field Values

LTPI

public static final double LTPI
See Also:
Constant Field Values
Constructor Detail

HTSParameterGeneration

public HTSParameterGeneration()
Method Detail

getMcep

public double getMcep(int i,
                      int j)

getMcepOrder

public int getMcepOrder()

getMcepT

public int getMcepT()

getMcepPst

public HTSPStream getMcepPst()

setMcepPst

public void setMcepPst(HTSPStream var)

getStr

public double getStr(int i,
                     int j)

getStrOrder

public int getStrOrder()

getStrPst

public HTSPStream getStrPst()

getMag

public double getMag(int i,
                     int j)

getMagOrder

public int getMagOrder()

getMagPst

public HTSPStream getMagPst()

getLf0

public double getLf0(int i,
                     int j)

getLf0Order

public int getLf0Order()

getlf0Pst

public HTSPStream getlf0Pst()

setlf0Pst

public void setlf0Pst(HTSPStream var)

getVoiced

public boolean getVoiced(int i)

setVoiced

public void setVoiced(int i,
                      boolean bval)

getVoicedArray

public boolean[] getVoicedArray()

setVoicedArray

public void setVoicedArray(boolean[] var)

htsMaximumLikelihoodParameterGeneration

public void htsMaximumLikelihoodParameterGeneration(HTSUttModel um,
                                                    HMMData htsData,
                                                    java.lang.String parFileName,
                                                    boolean debug)
                                             throws java.lang.Exception
HTS maximum likelihood parameter generation

Parameters:
um - : utterance model sequence after processing Mary context features
ms - : HMM pdfs model set.
Throws:
java.lang.Exception

saveParamMaryFormat

public void saveParamMaryFormat(java.lang.String fileName,
                                HTSPStream par,
                                int type)

saveParam

public void saveParam(java.lang.String fileName,
                      HTSPStream par,
                      int type)

loadUnitLogF0ContinuousFeature

public void loadUnitLogF0ContinuousFeature(HTSUttModel um)
                                    throws java.lang.Exception
Throws:
java.lang.Exception