#include <sent/stddefs.h>
#include <sent/htk_defs.h>
htk_param.hのインクルード依存関係図
このグラフは、どのファイルから直接、間接的にインクルードされているかを示しています。
データ構造 | |
struct | HTK_Param_Header |
Parameter types and extraction conditions [詳細] | |
struct | HTK_Param |
Input speech parameter [詳細] | |
関数 | |
boolean | rdparam (char *, HTK_Param *) |
HTK_Param * | new_param () |
void | free_param (HTK_Param *) |
short | param_qualstr2code (char *) |
short | param_str2code (char *) |
char * | param_qualcode2str (char *, short, boolean) |
char * | param_code2str (char *, short, boolean) |
HTK_Param * | new_select_param_kind (HTK_Param *src, short select_qualifier) |
boolean | select_param_vmark (HTK_Param *src, short dst_type) |
int | exec_exclude_one_vector (VECT *vec, int len) |
Execute deletion for one vector according to the exlusion marks. | |
int | guess_basenum (HTK_Param *p, short qualtype) |
boolean | param_strip_zero (HTK_Param *param) |
void | put_param_head (HTK_Param_Header *h) |
void | put_vec (VECT **p, int num, short veclen) |
void | put_param (HTK_Param *pinfo) |
void | put_param_info (HTK_Param *pinfo) |
音声特徴量は外部で HTK などによって抽出されたHTK形式の特徴量ファイルを 読み込むことができます.また,MFCC 形式であれば Julius 内で 直接音声波形から抽出することができます.実際にJuliusが内部で抽出する することができる特徴量は {25|26} 次元の MFCC_{0|E}_D[_Z][_N] のみです.
使用する音響モデル(HMM)が学習時に用いた特徴量と認識対象とする入力の 特徴量の形式は一致させる必要があります.認識実行時には,音響モデルと入力 ファイルの特徴量形式がチェックされ,適合しない場合はエラーとなります. ただし,入力音声のサンプリング周波数やフレームシフト幅,ウィンドウ長の 情報はHTK形式の音響モデルには保持されていないため,チェックできません. 注意して下さい.
htk_param.h で定義されています。
Top function to read a HTK parameter file.
filename | [in] HTK parameter file name | |
pinfo | [in] parameter data (already allocated by new_param()) |
HTK_Param* new_param | ( | ) |
Allocate a new parameter.
参照元 init_param()・main_recognition_loop()・new_select_param_kind()・new_wav2mfcc().
void free_param | ( | HTK_Param * | pinfo | ) |
Free the HTK parameter structure.
pinfo | [in] parameter data to be destroyed. |
参照元 main_recognition_loop()・new_param_check_and_adjust()・RealTimeTerminate().
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 の 69 行で定義されています。
参照元 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 の 105 行で定義されています。
参照元 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 の 148 行で定義されています。
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 の 177 行で定義されています。
参照元 new_param_check_and_adjust()・new_select_param_kind()・print_hmmdef_info()・put_param_head().
Extracts needed parameter vector specified in dst_type_arg from src, and returns newly allocated parameter structure.
src | [in] input parameter | |
dst_type_arg | [in] required parameter type |
paramselect.c の 382 行で定義されています。
Compare source parameter type and required type in HTK HMM, and set mark.
src | [in] input parameter | |
dst_type_arg | [in] required parameter type |
paramselect.c の 227 行で定義されています。
int exec_exclude_one_vector | ( | VECT * | vec, | |
int | len | |||
) |
Execute deletion for one vector according to the exlusion marks.
This can be used to frame-synchronous parameter adjustment.
vec | [I/O] target vector | |
len | [in] length of above |
paramselect.c の 168 行で定義されています。
int guess_basenum | ( | HTK_Param * | p, | |
short | qualtype | |||
) |
Guess the length of the base coefficient according to the total vector length and parameter type.
p | [in] parameter data | |
qualtype | [in] parameter type |
paramselect.c の 195 行で定義されています。
Strip zero frames from MFCC data.
param | [in] parameter data |
strip_mfcc.c の 98 行で定義されています。
void put_param_head | ( | HTK_Param_Header * | h | ) |
Output parameter header.
h | [in] pointer to a parameter header information |
put_htkdata_info.c の 216 行で定義されています。
参照元 put_param().
void put_vec | ( | VECT ** | p, | |
int | num, | |||
short | veclen | |||
) |
Output array of vectors.
p | [in] pointer to vector array represented as [0..num-1][0...veclen-1] | |
num | [in] number of vectors in p | |
veclen | [in] length of each vector |
put_htkdata_info.c の 232 行で定義されています。
参照元 put_param().
void put_param | ( | HTK_Param * | pinfo | ) |
Output the whole parameter information, including header and all vectors.
pinfo | [in] pointer to parameter structure. |
put_htkdata_info.c の 252 行で定義されています。
void put_param_info | ( | HTK_Param * | pinfo | ) |
Output the length of an input parameter by number of frames and seconds.
pinfo | [in] pointer to parameter structure. |
put_htkdata_info.c の 264 行で定義されています。