#include <sent/stddefs.h>
#include <sent/htk_defs.h>
#include <sent/htk_param.h>
関数 | |
short | param_qualstr2code (char *s) |
Convert a qualifier string to a binary type code. | |
short | param_str2code (char *s) |
Convert a type string that contains basename and qualifiers to a binary type code. | |
char * | param_qualcode2str (char *buf, short type, boolean descflag) |
Convert the qualifier part of a binary type code to string. | |
char * | param_code2str (char *buf, short type, boolean descflag) |
Convert a binary type code to string. | |
変数 | |
static OptionStr | pbase [] |
Database that relates base type strings to binary code and description string. | |
static OptionStr | pqual [] |
Database that relates qualifier type strings to binary code and description string. |
このファイルの関数は,特徴パラメータ型の文字列表現("MFCC_E_D_Z" など) と HTK の short 型で表される内部バイナリ形式との相互変換を行ないます.
paramtypes.c で定義されています。
short param_qualstr2code | ( | char * | s | ) |
Convert a qualifier string to a binary type code.
s | [in] a string that contains qualifier strings like "_E_D_Z" |
paramtypes.c の 70 行で定義されています。
参照元 param_str2code().
short param_str2code | ( | char * | s | ) |
Convert a type string that contains basename and qualifiers to a binary type code.
s | [in] a string that contains base and qualifier string like "MFCC_E_D_Z" |
paramtypes.c の 106 行で定義されています。
参照元 read_global_opt().
char* param_qualcode2str | ( | char * | buf, | |
short | type, | |||
boolean | descflag | |||
) |
Convert the qualifier part of a binary type code to string.
buf | [out] buffer to store the resulting string (must have enough length) | |
type | [in] binary type code to convert. | |
descflag | [in] set to TRUE if you want result in description string instead of qualifier string. |
paramtypes.c の 149 行で定義されています。
参照元 param_code2str(), と select_param_vmark().
char* param_code2str | ( | char * | buf, | |
short | type, | |||
boolean | descflag | |||
) |
Convert a binary type code to string.
buf | [out] buffer to store the resulting string (must have enough length) | |
type | [in] binary type code to convert. | |
descflag | [in] set to TRUE if you want result in description string instead of base and qualifier string. |
paramtypes.c の 178 行で定義されています。
参照元 param_check_and_adjust(), print_hmmdef_info(), put_param_head(), と select_param_kind().
初期値:
{ {"WAVEFORM", F_WAVEFORM, "sampled waveform", FALSE}, {"DISCRETE", F_DISCRETE, "Discrete", FALSE}, {"LPC", F_LPC, "LPC", TRUE}, {"LPCEPSTRA", F_LPCEPSTRA, "LPC cepstral", TRUE}, {"MFCC", F_MFCC, "mel-frequency cepstral", TRUE}, {"FBANK", F_FBANK, "log mel-filter bank", TRUE}, {"MELSPEC", F_MELSPEC, "linear mel-filter bank", TRUE}, {"LPREFC", F_LPREFC, "LPC(reflection)", TRUE}, {"LPDELCEP", F_LPDELCEP, "LPC+Delta", TRUE}, {"USER", F_USER, "user defined sample kind", TRUE}, {NULL,0,NULL,FALSE} }
paramtypes.c の 36 行で定義されています。
初期値:
{ {"_E", F_ENERGY, "log energy coef.", TRUE}, {"_N", F_ENERGY_SUP, "uppress absolute energy", TRUE}, {"_D", F_DELTA, "delta coef.", TRUE}, {"_A", F_ACCL, "acceleration coef.", TRUE}, {"_C", F_COMPRESS, "compressed", TRUE}, {"_Z", F_CEPNORM, "cepstral mean normalization", TRUE}, {"_K", F_CHECKSUM, "CRC checksum added", TRUE}, {"_0", F_ZEROTH, "0'th cepstral parameter", TRUE}, {NULL,0,NULL,FALSE} }
paramtypes.c の 50 行で定義されています。