Julius 4.2
|
00001 00030 /* 00031 * Copyright (c) 1991-2011 Kawahara Lab., Kyoto University 00032 * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology 00033 * Copyright (c) 2005-2011 Julius project team, Nagoya Institute of Technology 00034 * All rights reserved 00035 */ 00036 00037 #ifndef __SENT_HTK_DEFS_H__ 00038 #define __SENT_HTK_DEFS_H__ 00039 00041 enum parameter_type { 00042 F_WAVEFORM, 00043 F_LPC, 00044 F_LPREFC, 00045 F_LPCEPSTRA, 00046 F_LPDELCEP, 00047 F_IREFC, 00048 F_MFCC, 00049 F_FBANK, 00050 F_MELSPEC, 00051 F_USER, 00052 F_DISCRETE, 00053 F_ERR_INVALID 00054 }; 00055 00056 /* Additional parameter qualifiers */ 00057 #define F_ENERGY 0x0040 ///< @c _E log energy coef. 00058 #define F_ENERGY_SUP 0x0080 ///< @c _N (with _E) suppress absolute energy 00059 #define F_DELTA 0x0100 ///< @c _D delta (first-order regression) coef. 00060 #define F_ACCL 0x0200 ///< @c _A (with _D) acceleration (second-order) coef. 00061 #define F_COMPRESS 0x0400 ///< @c _C compressed 00062 #define F_CEPNORM 0x0800 ///< @c _Z cepstral mean normalization 00063 #define F_CHECKSUM 0x1000 ///< @c _K CRC checksum added 00064 #define F_ZEROTH 0x2000 ///< @c _0 (with MFCC) 0'th cepstral parameter 00065 00066 #define F_BASEMASK 0x003f ///< Mask to extract qualifiers 00067 00069 enum { 00070 C_DIAG_C, 00071 C_INV_DIAG, 00072 C_FULL, 00073 C_LLT, 00074 C_XFORM}; 00075 00077 enum { 00078 D_NULL, 00079 D_POISSON, 00080 D_GAMMA, 00081 D_GEN}; 00082 00089 typedef struct { 00090 char *name; 00091 short type; 00092 char *desc; 00093 boolean supported; 00094 } OptionStr; 00095 00097 #define BINHMM_HEADER "JBINHMM\n" 00098 00100 #define BINHMM_HEADER_V2 "JBINHMMV2" 00101 00103 #define BINHMM_HEADER_V2_EMBEDPARA 'P' 00104 00106 #define BINHMM_HEADER_V2_VARINV 'V' 00107 00109 #define BINHMM_HEADER_V2_MPDFMACRO 'M' 00110 00112 #define MAXSTREAMNUM 50 00113 00114 #ifdef ENABLE_MSD 00115 #define LZERO (-1.0E10) ///< log(0) value of void dimension for MSD-HMM */ 00116 #endif 00117 00118 #endif /* __SENT_HTK_DEFS_H__ */