/* ----------------------------------------------------------- */
/* */
/* ___ */
/* |_| | |_/ SPEECH */
/* | | | | \ RECOGNITION */
/* ========= SOFTWARE */
/* */
/* */
/* ----------------------------------------------------------- */
/* developed at: */
/* */
/* Speech Vision and Robotics group */
/* Cambridge University Engineering Department */
/* http://svr-www.eng.cam.ac.uk/ */
/* */
/* Entropic Cambridge Research Laboratory */
/* (now part of Microsoft) */
/* */
/* ----------------------------------------------------------- */
/* Copyright: Microsoft Corporation */
/* 1995-2000 Redmond, Washington USA */
/* http://www.microsoft.com */
/* */
/* 2001-2002 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: HParm.c: Speech Parameter File Input/Output */
/* ----------------------------------------------------------- */
char *hparm_version = "!HVER!HParm: 3.4 [CUED 25/04/06]";
char *hparm_vc_id = "$Id: HParm.c,v 1.1.1.1 2006/10/11 09:54:58 jal58 Exp $";
#include "HShell.h"
#include "HMem.h"
#include "HMath.h"
#include "HSigP.h"
#include "HAudio.h"
#include "HWave.h"
#include "HVQ.h"
#include "HParm.h"
#include "HLabel.h"
#include "HModel.h"
#include "esignal.h"
#ifdef UNIX
#include <sys/ioctl.h>
#endif
/* ----------------------------- Trace Flags ------------------------- */
static int trace = 0;
#define T_TOP 0001 /* Top Level tracing */
#define T_BUF 0002 /* Buffer operations */
#define T_CPX 0004 /* Compression/Decompression */
#define T_PBS 0010 /* Buffer status */
#define T_QUA 0020 /* Qualifier operations */
#define T_OBS 0040 /* Observation extraction */
#define T_DET 0100 /* Silence detector operation */
#define T_MAT 0200 /* Matrix operations */
/* --------------------- Global Variables ------------------- */
static bool natWriteOrder = FALSE; /* Preserve natural write byte order*/
extern bool vaxOrder; /* true if byteswapping needed to
preserve SUNSO */
/* varScale stuff: acts as a cache to stop the scaling file being re-read
on each file opening */
static float varScale[100];
static int varScaleDim=0;
static char varScaleFN[MAXFNAMELEN] = "\0";
static bool highDiff = FALSE; /* compute higher oder differentials, only up to fourth */
static bool UseOldXFormCVN = FALSE; /* this allows us to go back to the old version with broken CVN */
static ParmKind ForcePKind = ANON; /* force to output a customized parm kind to make older versions
happy for all the parm kind types supported here */
static HMMSet *hset = NULL; /* hmmset to be used for frontend */
/* ------------------------------------------------------------------- */
/*
Parameter layout in tables/buffers is
Static [C0] [E] Deltas Accs
_N option is ignored everywhere except when copying from buffer
or table into an observation (ie in ExtractObservation) and in
GetBufferInfo() which returns the observation vector size in
tgtvecSize taking into account _N.
When _0 is used alone it behaves exactly like _E. When _0_E,
C0 is placed immediately before energy and in this case deltas
are not allowed.
*/
/* ----------------- Configuration Information ----------------- */
/*
An IOConfig record specifies the mapping from the source
to the target parameterisation. Its built in defaults
can be overridden using configuration parameters.
*/
typedef enum { FFTbased, LPCbased, VQbased} CodeStyle;
typedef struct {
/* ------- Overrideable parameters ------- */
ParmKind srcPK; /* Source ParmKind */
FileFormat srcFF; /* Source File format */
HTime srcSampRate; /* Source Sample Rate */
bool zMeanSrc; /* Zero Mean the Source */
ParmKind tgtPK; /* Target ParmKind */
FileFormat tgtFF; /* Target File format */
HTime tgtSampRate; /* Target Sample Rate */
bool saveCompressed; /* If LPREFC save as IREFC else _C */
bool saveWithCRC; /* Append check sum on save */
HTime winDur; /* Source window duration */
bool useHam; /* Use Hamming Window */
float preEmph; /* PreEmphasis Coef */
bool usePower; /* Use power instead of Magnitude */
int numChans; /* Number of filter bank channels */
float loFBankFreq; /* Fbank lo frequency cut-off */
float hiFBankFreq; /* Fbank hi frequency cut-off */
float warpFreq; /* Warp freq axis for vocal tract normalisation */
float warpLowerCutOff; /* lower and upper threshold frequencies */
float warpUpperCutOff; /* for linear frequency warping */
int lpcOrder; /* Order of lpc analysis */
float compressFact; /* Compression factor for PLP */
int cepLifter; /* Cepstral liftering coef */
int numCepCoef; /* Number of cepstral coef */
float cepScale; /* Scaling factor to avoid arithmetic problems */
bool rawEnergy; /* Use raw energy before preEmp and ham */
bool eNormalise; /* Normalise log energy */
float eScale; /* Energy scale factor */
float silFloor; /* Silence floor in dBs */
int delWin; /* Delta window halfsize */
int accWin; /* Accel window halfsize */
bool simpleDiffs; /* Use simple differences for delta calcs */
/* Silence detector parameters */
bool useSilDet; /* Use Silence Detector */
int selfCalSilDet; /* Self calibrating silence detection */
float spThresh; /* Speech Threshold (in dB above sil level) */
float silDiscard; /* Calibrate discard level */
float silMean; /* Mean silence energy (in dB) */
int spcSeqCount; /* Number of frames for speech window */
int spcGlchCount; /* of spc in sil acceptable as glitches */
int silGlchCount; /* of sil in spc acceptable as glitches */
int silSeqCount; /* of silence before stopping */
int marginCount; /* of sil around speech to process */
bool measureSil; /* Measure Silence */
bool outSilWarn; /* Give Warning when SilMeas */
/* Misc */
int audSignal; /* Signal Number for Audio Control */
bool v1Compat; /* V1 compatibility mode */
char *vqTabFN; /* Name of
没有合适的资源?快使用搜索试试~ 我知道了~
HCopy.rar_HTK_hcopy_hcopy.c_htk hcopy 封装
共98个文件
sbr:31个
obj:22个
cpp:17个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 147 浏览量
2022-09-21
05:42:36
上传
评论
收藏 5.88MB RAR 举报
温馨提示
语音识别HTK工具,在vc6下利用c++调试通过,其中更改了与c不能兼容的部分
资源推荐
资源详情
资源评论
收起资源包目录
HCopy.rar (98个子文件)
HCopy
esignal.h 9KB
HUtil.h 9KB
HVQ.h 5KB
HModel.h 26KB
HMath.h 8KB
HShell.cpp 58KB
HTrain.h 11KB
HCopy.opt 56KB
HLabel.cpp 47KB
esignal.cpp 47KB
HAudio.h 6KB
HCopy.dsw 533B
HAudio.cpp 75KB
HParm.cpp 184KB
HLabel.h 10KB
HWave.cpp 59KB
HAdapt.h 6KB
HMap.h 3KB
HMem.cpp 28KB
HUtil.cpp 38KB
HCopy.cpp 28KB
HVQ.cpp 14KB
HSigP.h 10KB
HCopy.plg 2KB
HFB.cpp 65KB
HSigP.cpp 27KB
HAdapt.cpp 142KB
HMem.h 10KB
Debug
esig_nat.sbr 25KB
HShell.obj 124KB
HWave.obj 104KB
HFB.obj 105KB
HArc.sbr 980KB
HVQ.obj 41KB
HCopy.sbr 0B
esignal.sbr 0B
HLabel.obj 98KB
HGraf_WIN32.sbr 964KB
esig_nat.obj 27KB
HCopy.ilk 818KB
HTrain.sbr 0B
HParm.sbr 0B
HCopy.exe 1MB
HParm.obj 244KB
HMap.sbr 0B
HMem.obj 69KB
HCopy.pdb 1.23MB
HModel.obj 325KB
HDict.sbr 968KB
HAudio.sbr 0B
HMath.obj 92KB
HRec.sbr 1014KB
HUtil.obj 81KB
esig_edr.obj 73KB
HNet.sbr 986KB
vc60.idb 217KB
HModel.sbr 0B
HExactMPE.sbr 984KB
HAdapt.obj 207KB
HUtil.sbr 0B
HMath.sbr 0B
HSigP.sbr 0B
HSigP.obj 58KB
HMap.obj 37KB
HShell.sbr 0B
HAudio.obj 55KB
HAdapt.sbr 0B
HVQ.sbr 0B
HMem.sbr 0B
vc60.pdb 132KB
esig_asc.obj 91KB
HLabel.sbr 0B
HDict.obj 35KB
HCopy.bsc 4.19MB
HTrain.obj 111KB
HRec.obj 97KB
HWave.sbr 0B
strarr.obj 5KB
HFB.sbr 0B
HCopy.pch 183KB
HCopy.obj 71KB
HLM.sbr 975KB
HFBLat.sbr 989KB
HGraf.null.sbr 963KB
HLat.sbr 980KB
esig_asc.sbr 43KB
esig_edr.sbr 40KB
strarr.sbr 20KB
HModel.cpp 180KB
HMath.cpp 45KB
HFB.h 6KB
HShell.h 19KB
HCopy.dsp 6KB
HMap.cpp 14KB
HParm.h 16KB
HCopy.ncb 505KB
HWave.h 6KB
HTrain.cpp 55KB
共 98 条
- 1
资源评论
御道御小黑
- 粉丝: 58
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功