⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hadapt.h

📁 该压缩包为最新版htk的源代码,htk是现在比较流行的语音处理软件,请有兴趣的朋友下载使用
💻 H
字号:
/* ----------------------------------------------------------- *//*                                                             *//*                          ___                                *//*                       |_| | |_/   SPEECH                    *//*                       | | | | \   RECOGNITION               *//*                       =========   SOFTWARE                  */ /*                                                             *//*                                                             *//* ----------------------------------------------------------- *//* developed at:                                               *//*                                                             *//*      Speech Vision and Robotics group                       *//*      Cambridge University Engineering Department            *//*      http://svr-www.eng.cam.ac.uk/                          *//*                                                             *//* ----------------------------------------------------------- *//*         Copyright:                                          *//*                                                             *//*              2003  M.J.F. Gales and                         *//*                    Cambridge University                     *//*                    Engineering Department                   *//*                                                             *//*   Use of this software is governed by a License Agreement   *//*    ** See the file License for the Conditions of Use  **    *//*    **     This banner notice must not be removed      **    *//*                                                             *//* ----------------------------------------------------------- *//*         File: HAdapt.h      Adaptation Library module       *//* ----------------------------------------------------------- */#ifndef _HADAPT_H_#define _HADAPT_H_#ifdef __cplusplusextern "C" {#endiftypedef struct {  char *outSpkrPat;  char *inSpkrPat;  char *paSpkrPat;  char *outXFormExt;  char *inXFormExt;  char *paXFormExt;  char *alXFormExt;  char *outXFormDir;  char *paXFormDir;  char *alXFormDir;  Boolean useOutXForm;  Boolean useInXForm;  Boolean usePaXForm;  char *xformTMF;  Boolean saveBinary;  AdaptXForm *inXForm;  AdaptXForm *outXForm;  AdaptXForm *paXForm;  HMMSet *al_hset;  AdaptXForm *al_inXForm;} XFInfo;/* -------------------- Initialisation Functions -------------------------- */void InitAdapt(XFInfo *xfinfo);/*   Initialise configuration parameters*/AdaptXForm *GetMLLRDiagCov(AdaptXForm *xform);/* ---------------- Accumulation Control Functions ------------------------ */void SetBaseAccsTime(int t);void TidyBaseAccs();/*  Modifies the internal time of current frames. Is used to ensure that  last frame is correctly added in using UpdateBaseTriMat*/void AccAdaptFrame(double Lr, Vector svec, MixPDF *mp, int t);/*    Accumulate frame stats into specific mixture comp transformed using parent*/void ZeroAdaptAccs(HMMSet *hset, AdaptXForm *xform);/*   Zero all adaptation accumulates*//* ---------------- Applying Transform Functions ------------------------ */void SetXForm(HMMSet *hset, AdaptXForm *xform);/*  Set the current transform to xform. This must be executed  prior to applying any adaptation transforms. Setting xform   to NULL turns off the input transformation.*/void SetParentXForm(HMMSet *hset, AdaptXForm *xform);/*  Set the parent transform to xform. If this is not set the  default functionality is to build a transform on top of  the input transform if any. Setting xform to NULL means  build a transform on the original model set and feature  space.*/void ApplyHMMSetXForm(HMMSet *hset, AdaptXForm* xform);/*  Apply current transform (and parents) to complete model set.*/void ApplyCompXForm(MixPDF *mp, AdaptXForm* xform);/*  Apply current transform (and parents) to a component.*/Vector ApplyCompFXForm(MixPDF *mp, Vector svec, AdaptXForm* xform, LogFloat *det, int t);/*  Apply linear transform  (and parents) to observation for a component   return a vector of the transformed parameters.  IMPORTANT: Do not alter the values of the returned vector*/void ResetObsCache(void);void ResetXFormHMMSet(HMMSet *hset);/*  Return the model set to it's original state   IMPORTANT: if HADAPT:STOREMINFO=FALSE is used this  will have no affect*//* ---------------  Transform Copying Functions ----------------------- */LinXForm *CopyLinXForm(MemHeap *x, LinXForm *xf);/*  Create a linxform that is a copy of xf*/XFormSet *CopyXFormSet(MemHeap *x, XFormSet *xfset);/*  Create a XFormSet that is a copy of xf*/AdaptXForm *CopyAdaptXForm(MemHeap *x, AdaptXForm *xform);/*  Create an AdaptXForm that is a copy of xf*//* ---------------  Transform Estimation Functions ----------------------- */AdaptXForm *CreateAdaptXForm(HMMSet *hset, char* xformName);/*  Creates a new output transform. xformName will eventually  be used as the macroname for the transform.*/Boolean GenAdaptXForm(HMMSet *hset, AdaptXForm* xform);/*  Estimate the transform using the information and regression  trees specified in the configuration files. Returns FALSE  if there was insufficient data to generate a transform.*/Boolean UpdateSpkrStats(HMMSet *hset, XFInfo *xfinfo, char *datafn);/*    UpdateSpkrStats: monitor speaker changes and generate transforms   at each speaker boundary, returns TRUE when the output speaker   has changed*/Boolean HardAssign(AdaptXForm *xform);/*    Whether the transform uses hard assignment or not - required   for HModel to determine how to read/write transform*/#ifdef __cplusplus}#endif#endif  /* _HADAPT_H_ *//* ---------------------------- END HAdapt.h ------------------------------ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -