#include <julius.h>
#include <time.h>
Include dependency graph for result_msock.c:
Go to the source code of this file.
Definition in file result_msock.c.
static void msock_status_process_online | ( | ) | [static] |
Called when it becomes ready to recognize the input.
Definition at line 41 of file result_msock.c.
Referenced by setup_result_msock().
static void msock_status_process_offline | ( | ) | [static] |
Called when process paused and recognition is stopped.
Definition at line 56 of file result_msock.c.
Referenced by setup_result_msock().
void decode_output_selection | ( | char * | str | ) |
Setup which word information to be output as a recognition result.
str | [in] output selection string (part of "WLPSCwlps") |
Definition at line 84 of file result_msock.c.
Referenced by opt_parse().
Subroutine to output information of a recognized word at 1st pass.
w | [in] word ID | |
winfo | [in] word dictionary |
Definition at line 134 of file result_msock.c.
Referenced by msock_pass1_current(), and msock_pass1_final().
Subroutine to output information of a recognized word at 2nd pass.
w | [in] word ID | |
winfo | [in] word dictionary |
Definition at line 171 of file result_msock.c.
Referenced by msock_pass2().
static void msock_pass1_begin | ( | ) | [static] |
1st pass: output when recognition begins (will be called at input start).
Definition at line 208 of file result_msock.c.
Referenced by setup_result_msock().
static void msock_pass1_current | ( | int | t, | |
WORD_ID * | seq, | |||
int | num, | |||
LOGPROB | score, | |||
LOGPROB | LMscore, | |||
WORD_INFO * | winfo | |||
) | [static] |
1st pass: output current result while search (called periodically while 1st pass).
t | [in] current time frame | |
seq | [in] current best word sequence at time t. | |
num | [in] length of seq. | |
score | [in] accumulated score of the current best sequence at t. | |
LMscore | [in] confidence score of last word on the sequence | |
winfo | [in] word dictionary |
Definition at line 235 of file result_msock.c.
Referenced by setup_result_msock().
static void msock_pass1_final | ( | WORD_ID * | seq, | |
int | num, | |||
LOGPROB | score, | |||
LOGPROB | LMscore, | |||
WORD_INFO * | winfo | |||
) | [static] |
1st pass: output final result of the 1st pass (will be called just after the 1st pass ends and before the 2nd pass begins, and will not if search failed).
seq | [in] word sequence of the best hypothesis at the 1st pass. | |
num | [in] length of seq. | |
score | [in] accumulated hypothesis score of seq. | |
LMscore | [in] language score in score. | |
winfo | [in] word dictionary. |
Definition at line 278 of file result_msock.c.
Referenced by setup_result_msock().
static void msock_pass1_end | ( | ) | [static] |
1st pass: end of output (will be called at the end of the 1st pass).
Definition at line 308 of file result_msock.c.
Referenced by setup_result_msock().
static void msock_pass2_begin | ( | ) | [static] |
2nd pass: output at the start of result output (will be called before all the result output in the 2nd pass).
Definition at line 329 of file result_msock.c.
Referenced by setup_result_msock().
2nd pass: output a sentence hypothesis found in the 2nd pass.
hypo | [in] sentence hypothesis to be output | |
rank | [in] rank of hypo | |
winfo | [in] word dictionary |
Definition at line 352 of file result_msock.c.
Referenced by setup_result_msock().
static void msock_pass2_end | ( | ) | [static] |
2nd pass: end output
Definition at line 405 of file result_msock.c.
Referenced by setup_result_msock().
static void msock_pass2_failed | ( | WORD_INFO * | winfo | ) | [static] |
Output when search failed and no sentence candidate has been found.
winfo | [in] word dictionary |
Definition at line 480 of file result_msock.c.
Referenced by setup_result_msock().
static void msock_rejected | ( | const char * | s | ) | [static] |
Output when input has been rejected and no recognition result is given. This will be called when input was rejected by speech detection such as GMM or input length.
s | [in] string that describes the result of rejection |
Definition at line 501 of file result_msock.c.
Referenced by setup_result_msock().
void msock_status_recready | ( | ) |
Output when ready to recognize and start waiting speech input.
Definition at line 520 of file result_msock.c.
Referenced by setup_result_msock().
void msock_status_recstart | ( | ) |
Output when input starts.
Definition at line 535 of file result_msock.c.
Referenced by setup_result_msock().
void msock_status_recend | ( | ) |
Output when input ends.
Definition at line 550 of file result_msock.c.
Referenced by setup_result_msock().
void msock_status_param | ( | HTK_Param * | param | ) |
Output input parameter status such as length.
param | [in] input parameter structure |
Definition at line 567 of file result_msock.c.
Referenced by setup_result_msock().
void setup_result_msock | ( | ) |
Register output functions to enable module output.
Definition at line 586 of file result_msock.c.
Referenced by select_result_output().