認識結果をソケットへ出力する. [詳細]
#include <julius.h>
#include <time.h>
関数 | |
static void | msock_status_process_online () |
static void | msock_status_process_offline () |
void | decode_output_selection (char *str) |
static void | msock_word_out1 (WORD_ID w, WORD_INFO *winfo) |
static void | msock_word_out2 (WORD_ID w, WORD_INFO *winfo) |
static void | msock_pass1_begin () |
static void | msock_pass1_current (int t, WORD_ID *seq, int num, LOGPROB score, LOGPROB LMscore, WORD_INFO *winfo) |
static void | msock_pass1_final (WORD_ID *seq, int num, LOGPROB score, LOGPROB LMscore, WORD_INFO *winfo) |
static void | msock_pass1_end () |
static void | msock_pass2_begin () |
static void | msock_pass2 (NODE *hypo, int rank, WORD_INFO *winfo) |
static void | msock_pass2_end () |
static void | msock_pass2_failed (WORD_INFO *winfo) |
static void | msock_rejected (const char *s) |
void | msock_status_recready () |
void | msock_status_recstart () |
void | msock_status_recend () |
void | msock_status_param (HTK_Param *param) |
void | setup_result_msock () |
変数 | |
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 |
static boolean | out2_cm = TRUE |
認識結果をソケットへ出力する.
result_msock.c で定義されています。
static void msock_status_process_online | ( | ) | [static] |
static void msock_status_process_offline | ( | ) | [static] |
void decode_output_selection | ( | char * | str | ) |
認識結果としてどういった単語情報を出力するかをセットする。
str | [in] 出力項目指定文字列 ("WLPSCwlps"の一部) |
result_msock.c の 84 行で定義されています。
参照元 opt_parse().
認識単語の情報を出力するサブルーチン(第2パス用).
w | [in] 単語ID | |
winfo | [in] 単語辞書 |
result_msock.c の 171 行で定義されています。
参照元 msock_pass2().
static void msock_pass1_begin | ( | ) | [static] |
static void msock_pass1_current | ( | int | t, | |
WORD_ID * | seq, | |||
int | num, | |||
LOGPROB | score, | |||
LOGPROB | LMscore, | |||
WORD_INFO * | winfo | |||
) | [static] |
第1パス:途中結果を出力する(第1パスの一定時間ごとに呼ばれる)
t | [in] 現在の時間フレーム | |
seq | [in] 現在の一位候補単語列 | |
num | [in] seq の長さ | |
score | [in] 上記のこれまでの累積スコア | |
LMscore | [in] 上記の最後の単語の信頼度 | |
winfo | [in] 単語辞書 |
result_msock.c の 235 行で定義されています。
参照元 setup_result_msock().
static void msock_pass1_final | ( | WORD_ID * | seq, | |
int | num, | |||
LOGPROB | score, | |||
LOGPROB | LMscore, | |||
WORD_INFO * | winfo | |||
) | [static] |
第1パス:終了時に第1パスの結果を出力する(第1パス終了後、第2パスが 始まる前に呼ばれる.認識に失敗した場合は呼ばれない).
seq | [in] 第1パスの1位候補の単語列 | |
num | [in] 上記の長さ | |
score | [in] 1位の累積仮説スコア | |
LMscore | [in] score のうち言語スコア | |
winfo | [in] 単語辞書 |
result_msock.c の 278 行で定義されています。
参照元 setup_result_msock().
static void msock_pass1_end | ( | ) | [static] |
static void msock_pass2_begin | ( | ) | [static] |
第2パス:音声認識結果の出力を開始する際の出力.認識結果を出力する際に、 一番最初に出力される.
result_msock.c の 329 行で定義されています。
参照元 setup_result_msock().
第2パス:得られた文仮説候補を1つ出力する.
hypo | [in] 得られた文仮説 | |
rank | [in] hypo の順位 | |
winfo | [in] 単語辞書 |
result_msock.c の 352 行で定義されています。
参照元 setup_result_msock().
static void msock_pass2_end | ( | ) | [static] |
static void msock_pass2_failed | ( | WORD_INFO * | winfo | ) | [static] |
static void msock_rejected | ( | const char * | s | ) | [static] |
入力が棄却されたときの出力.GMM や入力長で入力が棄却されたときに呼ばれる.
s | [in] 理由をあらわす文字列 |
result_msock.c の 501 行で定義されています。
参照元 setup_result_msock().
void msock_status_recready | ( | ) |
void msock_status_recstart | ( | ) |
void msock_status_recend | ( | ) |
void msock_status_param | ( | HTK_Param * | param | ) |
入力長などの入力パラメータ情報を出力.
param | [in] 入力パラメータ構造体 |
result_msock.c の 567 行で定義されています。
参照元 setup_result_msock().
void setup_result_msock | ( | ) |