📄 htk_defs.h
字号:
/** * @file htk_defs.h * @author Akinobu LEE * @date Thu Feb 10 19:36:47 2005 * * <EN> * @brief Symbol definitions for HTK HMM and HTK parameter * * This file defines symbols for HMM parameter definition needed * for both HMM definition file and HMM parameter file. * * @sa htk_hmm.h * @sa htk_param.h * </EN> * <JA> * @brief HTKの泼魔パラメ〖タの妨及に簇する年盗 * * このファイルには, HTK妨及のHMM年盗ファイル,あるいはHTK妨及の * パラメ〖タファイルを粕み哈む狠に涩妥な,パラメ〖タ房に簇息する * 年盗が羌められていますˉ * * @sa htk_hmm.h * @sa htk_param.h * </JA> * * $Revision: 1.5 $ * *//* * Copyright (c) 1991-2006 Kawahara Lab., Kyoto University * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology * Copyright (c) 2005-2006 Julius project team, Nagoya Institute of Technology * All rights reserved */#ifndef __SENT_HTK_DEFS_H__#define __SENT_HTK_DEFS_H__/// Definition of input parameter types derived from HTKenum parameter_type { F_WAVEFORM, ///< Waveform format F_LPC, ///< LPC --- linear prediction coef. F_LPREFC, ///< linear prediction refrection coef. F_LPCEPSTRA, ///< LPC cepstrum F_LPDELCEP, F_IREFC, F_MFCC, ///< mel-frequency cepstral coef. F_FBANK, ///< log-scale filterbank parameter F_MELSPEC, ///< mel-scale filterbank parameter F_USER, F_DISCRETE, ///< discrete F_ERR_INVALID ///< ERROR };/* Additional parameter qualifiers */#define F_ENERGY 0x0040 ///< @c _E log energy coef. #define F_ENERGY_SUP 0x0080 ///< @c _N (with _E) suppress absolute energy #define F_DELTA 0x0100 ///< @c _D delta (first-order regression) coef. #define F_ACCL 0x0200 ///< @c _A (with _D) acceleration (second-order) coef. #define F_COMPRESS 0x0400 ///< @c _C compressed #define F_CEPNORM 0x0800 ///< @c _Z cepstral mean normalization #define F_CHECKSUM 0x1000 ///< @c _K CRC checksum added #define F_ZEROTH 0x2000 ///< @c _0 (with MFCC) 0'th cepstral parameter #define F_BASEMASK 0x003f ///< Mask to extract qualifiers/// Covariance matrix types: only C_INV_DIAG is supported in Juliusenum { C_DIAG_C, ///< (not supported) Diagonal covariance C_INV_DIAG, ///< Inversed diagonal covaritance C_FULL, ///< (not supported) Full covariance C_LLT, ///< (not supported) C_XFORM}; ///< (not supported) /// Duration model types: No duration model is supported in Julius, so only D_NULL is acceptableenum { D_NULL, ///< No duration model D_POISSON, ///< (not supported) D_GAMMA, ///< (not supported) D_GEN}; ///< (not supported) /** * @brief Structure for decoding/encoding parameter type code * * @sa libsent/src/anlz/paramtypes.c * @sa libsent/src/hmminfo/rdhmmdef_options.c */typedef struct { char *name; ///< Name string used in HTK hmmdefs short type; ///< Type code (one of definitions above) char *desc; ///< Brief description for user */ boolean supported; ///< TRUE if this is supported in Julius} OptionStr;/// Header string to detect binary HMM file#define BINHMM_HEADER "JBINHMM\n"/// Header string for binary HMM file V2 (parameter embedded)#define BINHMM_HEADER_V2 "JBINHMMV2"/// A header qualifier string for V2: acoustic analysis parameter embedded#define BINHMM_HEADER_V2_EMBEDPARA 'P'/// A header qualifier string for V2: variance inversed#define BINHMM_HEADER_V2_VARINV 'V'#endif /* __SENT_HTK_DEFS_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -