public class HMMData extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HMMData.FeatureType |
static class |
HMMData.PdfFileFormat |
Modifier and Type | Field and Description |
---|---|
static int |
HTS_NUMMTYPE
Number of model and identificator for the models
|
Constructor and Description |
---|
HMMData() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAlgnph() |
boolean |
getAlgnst() |
double |
getAlpha() |
double |
getBeta() |
CartTreeSet |
getCartTreeSet() |
double |
getDurationScale() |
double |
getF0Mean() |
double |
getF0Std() |
FeatureDefinition |
getFeatureDefinition() |
Set<HMMData.FeatureType> |
getFeatureSet()
return the set of FeatureTypes that are available in this HMMData object
|
int |
getFperiod() |
double |
getGamma() |
boolean |
getGvMethodGradient() |
GVModelSet |
getGVModelSet() |
double |
getGvWeightLf0() |
double |
getGvWeightMag() |
double |
getGvWeightMgc() |
double |
getGvWeightStr() |
double |
getLength() |
int |
getMaxLf0GvIter() |
int |
getMaxMagGvIter() |
int |
getMaxMgcGvIter() |
int |
getMaxStrGvIter() |
double[][] |
getMixFilters() |
int |
getNumFilters() |
int |
getOrderFilters() |
InputStream |
getPdfDurStream() |
InputStream |
getPdfLf0GVStream() |
InputStream |
getPdfLf0Stream() |
InputStream |
getPdfMagGVStream() |
InputStream |
getPdfMagStream() |
InputStream |
getPdfMgcGVStream() |
InputStream |
getPdfMgcStream() |
InputStream |
getPdfStrGVStream() |
InputStream |
getPdfStrStream() |
int |
getRate() |
double |
getRho() |
int |
getStage() |
InputStream |
getSwitchGVStream() |
InputStream |
getTreeDurStream() |
InputStream |
getTreeLf0Stream() |
InputStream |
getTreeMagStream() |
InputStream |
getTreeMgcStream() |
InputStream |
getTreeStrStream() |
boolean |
getUseAcousticModels() |
boolean |
getUseContextDependentGV() |
boolean |
getUseFourierMag() |
boolean |
getUseGV() |
boolean |
getUseLogGain() |
boolean |
getUseMixExc() |
double |
getUV() |
void |
initHMMData(PropertiesAccessor p,
String voiceName) |
void |
initHMMData(String voiceName) |
void |
initHMMData(String voiceName,
String marybase,
String configFile)
Reads from configuration file all the data files in this class this method is used when running HTSengine stand alone.
|
void |
initHMMDataForHMMModel(String voiceName)
Reads from configuration file tree and pdf data for duration and f0 this method is used by HMMModel
|
void |
loadCartTreeSet() |
void |
loadGVModelSet() |
void |
readMixedExcitationFilters(InputStream mixFiltersStream)
Initialisation for mixed excitation : it loads the filter taps, they are read from MixFilterFile specified in the
configuration file.
|
void |
setAlpha(double dval) |
void |
setBeta(double dval) |
void |
setDurationScale(double dval) |
void |
setF0Mean(double dval) |
void |
setF0Std(double dval) |
void |
setFperiod(int ival) |
void |
setGvMethod(String sval) |
void |
setGvWeightLf0(double dval) |
void |
setGvWeightMgc(double dval) |
void |
setGvWeightStr(double dval) |
void |
setLength(double dval) |
void |
setMaxLf0GvIter(int val) |
void |
setMaxMgcGvIter(int val) |
void |
setMaxStrGvIter(int val) |
void |
setNumFilters(int val) |
void |
setOrderFilters(int val) |
void |
setPdfMagStream(InputStream mag) |
void |
setPdfStrStream(InputStream str) |
void |
setRate(int ival) |
void |
setStage(int ival) |
void |
setUseAcousticModels(boolean bval) |
void |
setUseContextDepenendentGV(boolean bval) |
void |
setUseFourierMag(boolean bval) |
void |
setUseGV(boolean bval) |
void |
setUseLogGain(boolean bval) |
void |
setUseMixExc(boolean bval) |
public static final int HTS_NUMMTYPE
public int getRate()
public int getFperiod()
public double getRho()
public double getAlpha()
public double getBeta()
public int getStage()
public double getGamma()
public boolean getUseLogGain()
public double getUV()
public boolean getAlgnst()
public boolean getAlgnph()
public double getF0Std()
public double getF0Mean()
public double getLength()
public double getDurationScale()
public InputStream getTreeDurStream()
public InputStream getTreeLf0Stream()
public InputStream getTreeMgcStream()
public InputStream getTreeStrStream()
public InputStream getTreeMagStream()
public FeatureDefinition getFeatureDefinition()
public InputStream getPdfDurStream()
public InputStream getPdfLf0Stream()
public InputStream getPdfMgcStream()
public InputStream getPdfStrStream()
public InputStream getPdfMagStream()
public boolean getUseAcousticModels()
public void setUseAcousticModels(boolean bval)
public boolean getUseMixExc()
public boolean getUseFourierMag()
public boolean getUseGV()
public boolean getUseContextDependentGV()
public boolean getGvMethodGradient()
public int getMaxMgcGvIter()
public int getMaxLf0GvIter()
public int getMaxStrGvIter()
public int getMaxMagGvIter()
public double getGvWeightMgc()
public double getGvWeightLf0()
public double getGvWeightStr()
public double getGvWeightMag()
public InputStream getPdfLf0GVStream()
public InputStream getPdfMgcGVStream()
public InputStream getPdfStrGVStream()
public InputStream getPdfMagGVStream()
public InputStream getSwitchGVStream()
public int getNumFilters()
public int getOrderFilters()
public double[][] getMixFilters()
public void setRate(int ival)
public void setFperiod(int ival)
public void setAlpha(double dval)
public void setBeta(double dval)
public void setStage(int ival)
public void setUseLogGain(boolean bval)
public void setF0Std(double dval)
public void setF0Mean(double dval)
public void setLength(double dval)
public void setDurationScale(double dval)
public CartTreeSet getCartTreeSet()
public GVModelSet getGVModelSet()
public void setPdfStrStream(InputStream str)
public void setPdfMagStream(InputStream mag)
public void setUseMixExc(boolean bval)
public void setUseFourierMag(boolean bval)
public void setUseGV(boolean bval)
public void setUseContextDepenendentGV(boolean bval)
public void setGvMethod(String sval)
public void setMaxMgcGvIter(int val)
public void setMaxLf0GvIter(int val)
public void setMaxStrGvIter(int val)
public void setGvWeightMgc(double dval)
public void setGvWeightLf0(double dval)
public void setGvWeightStr(double dval)
public void setNumFilters(int val)
public void setOrderFilters(int val)
public void loadCartTreeSet() throws IOException, MaryConfigurationException
public void loadGVModelSet() throws IOException
IOException
public void initHMMData(PropertiesAccessor p, String voiceName) throws IOException, MaryConfigurationException
public void initHMMData(String voiceName, String marybase, String configFile) throws Exception
voiceName
- voiceNamemarybase
- marybaseconfigFile
- configFileException
- Exceptionpublic void initHMMData(String voiceName) throws IOException, MaryConfigurationException
public void initHMMDataForHMMModel(String voiceName) throws IOException, MaryConfigurationException
voiceName
- voiceNameIOException
- IOExceptionMaryConfigurationException
- MaryConfigurationExceptionpublic void readMixedExcitationFilters(InputStream mixFiltersStream) throws IOException
mixFiltersStream
- mixFiltersStreamIOException
- IOExceptionpublic Set<HMMData.FeatureType> getFeatureSet()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.