Julius 4.2
|
HTK 特徴パラメータファイルの読み込み・構造体の新規割り付け [詳細]
関数 | |
static boolean | myread (char *buf, size_t unitbyte, int unitnum, FILE *fp) |
Read binary data from a file pointer, with byte swapping. | |
static boolean | read_param (FILE *fp, HTK_Param *pinfo) |
Read in a HTK parameter file from fp . | |
boolean | rdparam (char *filename, HTK_Param *pinfo) |
Top function to read a HTK parameter file. | |
変数 | |
static boolean | needswap |
TRUE if need byte-swapping. |
HTK 特徴パラメータファイルの読み込み・構造体の新規割り付け
特徴パラメータファイルのバイトオーダーは big endian を仮定しています. ただし little endian の場合もできる限り自動判別して読み込みます.
ファイルの特徴パラメータ型に "_C" (圧縮データ),"_K" (CRCチェック サムつき)が含まれている場合,それらはここで処理されます.この場合, 読み込まれた後の特徴パラメータデータの型からこれらは取り除かれます.
rdparam.c で定義されています。
static boolean myread | ( | char * | buf, |
size_t | unitbyte, | ||
int | unitnum, | ||
FILE * | fp | ||
) | [static] |
Read binary data from a file pointer, with byte swapping.
buf | [out] buffer to store read data |
unitbyte | [in] size of a unit in bytes |
unitnum | [in] number of unit to read |
fp | [in] file pointer |
参照元 read_param().
Top function to read a HTK parameter file.
filename | [in] HTK parameter file name |
pinfo | [in] parameter data (already allocated by new_param()) |
参照元 j_open_stream().