Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

result_tty.c File Reference

Output recoginition result to standard output. More...

#include <julius.h>

Include dependency graph for result_tty.c:

Go to the source code of this file.

Functions

static void ttyout_status_process_online ()
static void ttyout_status_process_offline ()
static void ttyout_pass1_begin ()
static void ttyout_pass1_current (int t, WORD_ID *seq, int num, LOGPROB score, LOGPROB LMscore, WORD_INFO *winfo)
static void ttyout_pass1_final (WORD_ID *seq, int num, LOGPROB score, LOGPROB LMscore, WORD_INFO *winfo)
static void ttyout_pass1_end ()
static void put_hypo_woutput (NODE *hypo, WORD_INFO *winfo)
static void put_hypo_wname (NODE *hypo, WORD_INFO *winfo)
static void put_hypo_phoneme (NODE *hypo, WORD_INFO *winfo)
static void put_hypo_cmscore (NODE *hypo)
static void ttyout_pass2 (NODE *hypo, int rank, WORD_INFO *winfo)
static void ttyout_pass2_begin ()
static void ttyout_pass2_end ()
static void ttyout_pass2_failed (WORD_INFO *winfo)
static void ttyout_rejected (const char *s)
void ttyout_status_recready ()
void ttyout_status_recstart ()
void ttyout_status_recend ()
void ttyout_status_param (HTK_Param *param)
void setup_result_tty ()

Variables

static int wst
 Number of words at previous output line.


Detailed Description

Output recoginition result to standard output.

Author:
Akinobu Lee
Date:
Tue Sep 06 17:18:46 2005
Revision
1.2

Definition in file result_tty.c.


Function Documentation

static void ttyout_status_process_online  )  [static]
 

Called when it becomes ready to recognize the input.

Definition at line 40 of file result_tty.c.

Referenced by setup_result_tty().

static void ttyout_status_process_offline  )  [static]
 

Called when process paused and recognition is stopped.

Definition at line 55 of file result_tty.c.

Referenced by setup_result_tty().

static void ttyout_pass1_begin  )  [static]
 

1st pass: output when recognition begins (will be called at input start).

Definition at line 76 of file result_tty.c.

Referenced by setup_result_tty().

static void ttyout_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).

Parameters:
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 107 of file result_tty.c.

Referenced by setup_result_tty().

static void ttyout_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).

Parameters:
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 159 of file result_tty.c.

Referenced by setup_result_tty().

static void ttyout_pass1_end  )  [static]
 

1st pass: end of output (will be called at the end of the 1st pass).

Definition at line 222 of file result_tty.c.

Referenced by setup_result_tty().

static void put_hypo_woutput NODE hypo,
WORD_INFO winfo
[static]
 

Output word sequence of a hypothesis.

Parameters:
hypo [in] sentence hypothesis
winfo [in] word dictionary

Definition at line 246 of file result_tty.c.

Referenced by put_all_in_stack(), ttyout_pass2(), wb_ok(), and wchmm_fbs().

static void put_hypo_wname NODE hypo,
WORD_INFO winfo
[static]
 

Output LM word sequence (N-gram entry/DFA category) of a hypothesis.

Parameters:
hypo [in] sentence hypothesis
winfo [in] word dictionary

Definition at line 274 of file result_tty.c.

Referenced by ttyout_pass2(), and wchmm_fbs().

static void put_hypo_phoneme NODE hypo,
WORD_INFO winfo
[static]
 

Output phoneme sequence of a hypothesis.

Parameters:
hypo [in] sentence hypothesis
winfo [in] word dictionary

Definition at line 302 of file result_tty.c.

Referenced by ttyout_pass2().

static void put_hypo_cmscore NODE hypo  )  [static]
 

Output confidence score of words in a sentence hypothesis.

Parameters:
hypo 

Definition at line 348 of file result_tty.c.

Referenced by ttyout_pass2().

static void ttyout_pass2 NODE hypo,
int  rank,
WORD_INFO winfo
[static]
 

2nd pass: output a sentence hypothesis found in the 2nd pass.

Parameters:
hypo [in] sentence hypothesis to be output
rank [in] rank of hypo
winfo [in] word dictionary

Definition at line 379 of file result_tty.c.

Referenced by setup_result_tty(), and ttyout_pass2_failed().

static void ttyout_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 448 of file result_tty.c.

Referenced by setup_result_tty().

static void ttyout_pass2_end  )  [static]
 

2nd pass: end output

Definition at line 464 of file result_tty.c.

Referenced by setup_result_tty().

static void ttyout_pass2_failed WORD_INFO winfo  )  [static]
 

Output when search failed and no sentence candidate has been found.

Parameters:
winfo [in] word dictionary

Definition at line 539 of file result_tty.c.

Referenced by setup_result_tty().

static void ttyout_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.

Parameters:
s [in] string that describes the result of rejection

Definition at line 560 of file result_tty.c.

Referenced by setup_result_tty().

void ttyout_status_recready  ) 
 

Output when ready to recognize and start waiting speech input.

Definition at line 579 of file result_tty.c.

Referenced by setup_result_tty().

void ttyout_status_recstart  ) 
 

Output when input starts.

Definition at line 597 of file result_tty.c.

Referenced by setup_result_tty().

void ttyout_status_recend  ) 
 

Output when input ends.

Definition at line 612 of file result_tty.c.

Referenced by setup_result_tty().

void ttyout_status_param HTK_Param param  ) 
 

Output input parameter status such as length.

Parameters:
param [in] input parameter structure

Definition at line 629 of file result_tty.c.

Referenced by setup_result_tty().

void setup_result_tty  ) 
 

Register output functions to enable module output.

Definition at line 650 of file result_tty.c.

Referenced by select_result_output().


Generated on Tue Mar 28 16:18:07 2006 for Julius by  doxygen 1.4.2