Callback API
[JuliusLib API]

Callback APIのコラボレーション図
認識結果やエンジン状態を知るためのコールバック [詳細]

関数

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)
 コールバックから関数を削除する.

説明

認識結果やエンジン状態を知るためのコールバック


関数

int callback_add ( Recog recog,
int  code,
void(*)(Recog *recog, void *data)  func,
void *  data 
)

関数をコールバックレジストリに登録する.

引数:
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
戻り値:
global callback ID unique for the whole process, or -1 on error.

callback.c135 行で定義されています。

参照元 main(), と setup_output_msock().

呼出しグラフ:

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
戻り値:
global callback ID unique for the whole process, or -1 on error.

callback.c161 行で定義されています。

boolean callback_exist ( Recog recog,
int  code 
)

コールバックレジストリに1つでも関数が登録されたかどうかを返す.

引数:
recog [in] engine instance
code [in] callback code
戻り値:
TRUE when at least one is registered, or FALSE if none.

callback.c246 行で定義されています。

boolean callback_delete ( Recog recog,
int  id 
)

コールバックから関数を削除する.

引数:
recog [i/o] engine instance
id [in] global callback ID to delete
戻り値:
TRUE on success, or FALSE on failure.

callback.c271 行で定義されています。


Juliusに対してTue Dec 18 16:05:07 2007に生成されました。  doxygen 1.5.4