julius/result_msock.c File Reference

Output recoginition result via module socket. More...

#include <julius.h>
#include <time.h>

Include dependency graph for result_msock.c:

Go to the source code of this file.

Functions

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 ()

Variables

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


Detailed Description

Output recoginition result via module socket.

Author:
Akinobu Lee
Date:
Tue Sep 06 14:46:49 2005
Revision
1.5

Definition in file result_msock.c.


Function Documentation

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.

Parameters:
str [in] output selection string (part of "WLPSCwlps")

Definition at line 84 of file result_msock.c.

Referenced by opt_parse().

static void msock_word_out1 ( WORD_ID  w,
WORD_INFO winfo 
) [static]

Subroutine to output information of a recognized word at 1st pass.

Parameters:
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().

static void msock_word_out2 ( WORD_ID  w,
WORD_INFO winfo 
) [static]

Subroutine to output information of a recognized word at 2nd pass.

Parameters:
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).

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 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).

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 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().

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

Parameters:
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.

Parameters:
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.

Parameters:
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().


Generated on Tue Dec 26 16:16:55 2006 for Julius by  doxygen 1.5.0