#include "app.h"
#include <time.h>
関数 | |
| static void | status_process_online (Recog *recog, void *dummy) |
| 認識可能な状態になったときに呼ばれる | |
| static void | status_process_offline (Recog *recog, void *dummy) |
| 認識を一時中断状態になったときに呼ばれる | |
| void | decode_output_selection (char *str) |
| 認識結果としてどういった単語情報を出力するかをセットする。 | |
| static void | msock_word_out1 (WORD_ID w, RecogProcess *r) |
| 認識単語の情報を出力するサブルーチン(第1パス用). | |
| static void | msock_word_out2 (WORD_ID w, RecogProcess *r) |
| 認識単語の情報を出力するサブルーチン(第2パス用). | |
| static void | status_pass1_begin (Recog *recog, void *dummy) |
| 第1パス:音声認識を開始する際の出力(音声入力開始時に呼ばれる). | |
| static void | result_pass1_current (Recog *recog, void *dummy) |
| 第1パス:途中結果を出力する(第1パスの一定時間ごとに呼ばれる) | |
| static void | result_pass1_final (Recog *recog, void *dummy) |
| 第1パス:終了時に第1パスの結果を出力する(第1パス終了後、第2パスが 始まる前に呼ばれる. | |
| static void | status_pass1_end (Recog *recog, void *dummy) |
| 第1パス:終了時の出力(第1パスの終了時に必ず呼ばれる) | |
| static void | result_pass2 (Recog *recog, void *dummy) |
| 第2パス:得られた文仮説候補を1つ出力する. | |
| static void | result_graph (Recog *recog, void *dummy) |
| 得られた単語グラフ全体を出力する. | |
| static void | status_recready (Recog *recog, void *dummy) |
| 準備が終了して、認識可能状態(入力待ち状態)に入ったときの出力 | |
| static void | status_recstart (Recog *recog, void *dummy) |
| 入力の開始を検出したときの出力 | |
| static void | status_recend (Recog *recog, void *dummy) |
| 入力終了を検出したときの出力 | |
| static void | status_param (Recog *recog, void *dummy) |
| 入力長などの入力パラメータ情報を出力. | |
| static void | result_gmm (Recog *recog, void *dummy) |
| GMMの計算結果をモジュールのクライアントに送信する ("-result msock" 用) | |
| void | send_gram_info (RecogProcess *r) |
| 現在の保持している文法のリストをモジュールに送信する. | |
| void | setup_output_msock (Recog *recog, void *data) |
| モジュール出力を行うよう関数を登録する. | |
変数 | |
| int | module_sd |
| boolean | separate_score_flag |
| static char * | hookstr [] = {"", "delete", "activate", "deactivate"} |
| Grammar status to be processed in the next reload timing. | |
| static boolean | out1_word = FALSE |
| static boolean | out1_lm = FALSE |
| static boolean | out1_phone = FALSE |
| static boolean | out1_score = FALSE |
| static boolean | out2_word = TRUE |
| static boolean | out2_lm = TRUE |
| static boolean | out2_phone = TRUE |
| static boolean | out2_score = TRUE |
| static boolean | out1_never = TRUE |
| static boolean | out2_never = FALSE |
output_module.c で定義されています。
| void decode_output_selection | ( | char * | str | ) |
認識結果としてどういった単語情報を出力するかをセットする。
| str | [in] 出力項目指定文字列 ("WLPSCwlps"の一部) |
output_module.c の 93 行で定義されています。
| static void msock_word_out1 | ( | WORD_ID | w, | |
| RecogProcess * | r | |||
| ) | [static] |
| static void msock_word_out2 | ( | WORD_ID | w, | |
| RecogProcess * | r | |||
| ) | [static] |
認識単語の情報を出力するサブルーチン(第2パス用).
| w | [in] 単語ID | |
| winfo | [in] 単語辞書 |
output_module.c の 183 行で定義されています。
参照元 result_graph(), と result_pass2().
| static void result_pass1_current | ( | Recog * | recog, | |
| void * | dummy | |||
| ) | [static] |
第1パス:途中結果を出力する(第1パスの一定時間ごとに呼ばれる)
| t | [in] 現在の時間フレーム | |
| seq | [in] 現在の一位候補単語列 | |
| num | [in] seq の長さ | |
| score | [in] 上記のこれまでの累積スコア | |
| LMscore | [in] 上記の最後の単語の信頼度 | |
| winfo | [in] 単語辞書 |
output_module.c の 251 行で定義されています。
参照元 setup_output_msock().
| static void result_pass1_final | ( | Recog * | recog, | |
| void * | dummy | |||
| ) | [static] |
第1パス:終了時に第1パスの結果を出力する(第1パス終了後、第2パスが 始まる前に呼ばれる.
認識に失敗した場合は呼ばれない).
| seq | [in] 第1パスの1位候補の単語列 | |
| num | [in] 上記の長さ | |
| score | [in] 1位の累積仮説スコア | |
| LMscore | [in] score のうち言語スコア | |
| winfo | [in] 単語辞書 |
output_module.c の 316 行で定義されています。
参照元 setup_output_msock().
| static void result_pass2 | ( | Recog * | recog, | |
| void * | dummy | |||
| ) | [static] |
第2パス:得られた文仮説候補を1つ出力する.
| hypo | [in] 得られた文仮説 | |
| rank | [in] hypo の順位 | |
| winfo | [in] 単語辞書 |
output_module.c の 386 行で定義されています。
参照元 setup_output_msock().
| static void result_graph | ( | Recog * | recog, | |
| void * | dummy | |||
| ) | [static] |
得られた単語グラフ全体を出力する.
| root | [in] グラフ単語集合の先頭要素へのポインタ | |
| winfo | [in] 単語辞書 |
output_module.c の 501 行で定義されています。
参照元 setup_output_msock().
| static void status_param | ( | Recog * | recog, | |
| void * | dummy | |||
| ) | [static] |
入力長などの入力パラメータ情報を出力.
| param | [in] 入力パラメータ構造体 |
output_module.c の 604 行で定義されています。
参照元 setup_output_msock().
1.5.4