Julius 4.1.5
|
認識結果やエンジン状態を知るためのコールバック [詳細]
関数 | |
int | callback_add (Recog *recog, int code, void(*func)(Recog *recog, void *data), void *data) |
関数をコールバックレジストリに登録する. | |
int | callback_add_adin (Recog *recog, int code, void(*func)(Recog *recog, SP16 *buf, int len, void *data), void *data) |
関数をA/D-inタイプのコールバックレジストリに登録する. | |
boolean | callback_exist (Recog *recog, int code) |
コールバックレジストリに1つでも関数が登録されたかどうかを返す. | |
boolean | callback_delete (Recog *recog, int id) |
コールバックから関数を削除する. |
認識結果やエンジン状態を知るためのコールバック
関数をコールバックレジストリに登録する.
recog | [i/o] engine instance |
code | [in] code in which the function will be registered |
func | [in] function |
data | [in] user-specified argument to be passed when the function is called inside Julius |
callback.c の 135 行で定義されています。
参照元 main(), setup_output_msock(), と startup().
int callback_add_adin | ( | Recog * | recog, |
int | code, | ||
void(*)(Recog *recog, SP16 *buf, int len, void *data) | func, | ||
void * | data | ||
) |
関数をA/D-inタイプのコールバックレジストリに登録する.
recog | [i/o] engine instance |
code | [in] code in which the function will be registered |
func | [in] function |
data | [in] user-specified argument to be passed when the function is called inside Julius |
callback.c の 161 行で定義されています。
コールバックレジストリに1つでも関数が登録されたかどうかを返す.
recog | [in] engine instance |
code | [in] callback code |
callback.c の 298 行で定義されています。
参照元 j_recognize_stream().
コールバックから関数を削除する.
recog | [i/o] engine instance |
id | [in] global callback ID to delete |
callback.c の 323 行で定義されています。