libsent/include/sent/htk_param.h

HTKの特徴パラメータを保持する構造体に関連する定義. [詳細]

#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_Paramnew_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_Paramnew_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の特徴パラメータを保持する構造体に関連する定義.

作者:
Akinobu LEE
日付:
Fri Feb 11 02:52:52 2005

このファイルには,音声特徴量のベクトル系列を保持する構造体が 定義されています.入力音声から計算されたMFCC等の音声特徴量は, ここで定義される構造体 HTK_Param に保存されます.HTK_Paramには また,特徴量抽出時のフレームシフト幅やウィンドウ長などの情報が 保持されます.

音声特徴量は外部で HTK などによって抽出されたHTK形式の特徴量ファイルを 読み込むことができます.また,MFCC 形式であれば Julius 内で 直接音声波形から抽出することができます.実際にJuliusが内部で抽出する することができる特徴量は {25|26} 次元の MFCC_{0|E}_D[_Z][_N] のみです.

使用する音響モデル(HMM)が学習時に用いた特徴量と認識対象とする入力の 特徴量の形式は一致させる必要があります.認識実行時には,音響モデルと入力 ファイルの特徴量形式がチェックされ,適合しない場合はエラーとなります. ただし,入力音声のサンプリング周波数やフレームシフト幅,ウィンドウ長の 情報はHTK形式の音響モデルには保持されていないため,チェックできません. 注意して下さい.

参照:
htk_defs.h
Revision
1.3

htk_param.h で定義されています。


関数

boolean rdparam ( char *  filename,
HTK_Param pinfo 
)

Top function to read a HTK parameter file.

引数:
filename [in] HTK parameter file name
pinfo [in] parameter data (already allocated by new_param())
戻り値:
TRUE on success, FALSE on failure.

rdparam.c233 行で定義されています。

参照元 main_recognition_loop().

HTK_Param* new_param (  ) 

Allocate a new parameter.

戻り値:
pointer to the newly allocated area.

rdparam.c197 行で定義されています。

参照元 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.

rdparam.c212 行で定義されています。

参照元 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"
戻り値:
the converted internal binary type code, F_ERR_INVALID if failed.

paramtypes.c69 行で定義されています。

参照元 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"
戻り値:
the converted internal binary type code, F_ERR_INVALID if failed.

paramtypes.c105 行で定義されています。

参照元 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.
戻り値:
buf on success, NULL on failure.

paramtypes.c148 行で定義されています。

参照元 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.
戻り値:
buf on success, NULL on failure.

paramtypes.c177 行で定義されています。

参照元 new_param_check_and_adjust(), new_select_param_kind(), print_hmmdef_info(), と put_param_head().

HTK_Param* new_select_param_kind ( HTK_Param src,
short  dst_type_arg 
)

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
戻り値:
newly allocated adjusted parameter, NULL on failure.

paramselect.c382 行で定義されています。

参照元 new_param_check_and_adjust().

boolean select_param_vmark ( HTK_Param src,
short  dst_type_arg 
)

Compare source parameter type and required type in HTK HMM, and set mark.

引数:
src [in] input parameter
dst_type_arg [in] required parameter type
戻り値:
TRUE on success, FALSE on failure.

paramselect.c227 行で定義されています。

参照元 new_select_param_kind().

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
戻り値:
the new length.

paramselect.c168 行で定義されています。

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
戻り値:
the guessed size of the base coefficient.

paramselect.c195 行で定義されています。

参照元 guess_abs_e_location(), と select_param_vmark().

boolean param_strip_zero ( HTK_Param param  ) 

Strip zero frames from MFCC data.

引数:
param [in] parameter data
戻り値:
TRUE on success, FALSE on failure.

strip_mfcc.c98 行で定義されています。

参照元 main_recognition_loop().

void put_param_head ( HTK_Param_Header h  ) 

Output parameter header.

引数:
h [in] pointer to a parameter header information

put_htkdata_info.c216 行で定義されています。

参照元 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.c232 行で定義されています。

参照元 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.c252 行で定義されています。

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.c264 行で定義されています。

参照元 ttyout_status_param().


Juliusに対してTue Sep 22 00:14:42 2009に生成されました。  doxygen 1.6.0