julius/output_stdout.c File Reference

Output recoginition result to standard output. More...

#include "app.h"

Go to the source code of this file.

Defines

#define MAXBUFLEN   4096
 Maximum line length of a message sent from a client.
#define TEXTWIDTH   70
 Assumed tty width for graph view output.
#define SPTEXTWIDTH   72
 tty width for short-pause segmentation output
#define SPTEXT_FULLWIDTH   76
#define TEXTWIDTH   70
 Assumed tty width for graph view output.

Functions

void myprintf (char *fmt,...)
static void status_process_online (Recog *recog, void *dummy)
 Output message when processing was started or resumed.
static void status_process_offline (Recog *recog, void *dummy)
 Output message when the process paused by external command.
static void status_recready (Recog *recog, void *dummy)
 Output when ready to recognize and start waiting speech input.
static void status_recstart (Recog *recog, void *dummy)
 Output when input starts.
static void status_recend (Recog *recog, void *dummy)
 Output when input ends.
static void status_param (Recog *recog, void *dummy)
 Output input parameter status such as length.
static void status_recognition_begin (Recog *recog, void *dummy)
 Output message when recognition is just started for an incoming input.
static void status_recognition_end (Recog *recog, void *dummy)
 Output message when the whole recognition procedure was just finished for an input.
static void status_segment_begin (Recog *recog, void *dummy)
 Output a message when recognition was just started for a segment in a input.
static void status_segment_end (Recog *recog, void *dummy)
 Output a message when recognition was just finished for a segment in a input.
static void status_pass1_begin (Recog *recog, void *dummy)
 1st pass: output when recognition begins (will be called at input start).
static void result_pass1_current (Recog *recog, void *dummy)
 1st pass: output current result while search (called periodically while 1st pass).
static void result_pass1_determined (Recog *recog, void *dummy)
static void result_pass1 (Recog *recog, void *dummy)
 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).
static void status_pass1_end (Recog *recog, void *dummy)
 1st pass: end of output (will be called at the end of the 1st pass).
static void put_hypo_woutput (WORD_ID *seq, int n, WORD_INFO *winfo)
 Output word sequence of a hypothesis.
static void put_hypo_wname (WORD_ID *seq, int n, WORD_INFO *winfo)
 Output LM word sequence (N-gram entry/DFA category) of a hypothesis.
static void put_hypo_phoneme (WORD_ID *seq, int n, WORD_INFO *winfo)
 Output phoneme sequence of a hypothesis.
static void result_pass2 (Recog *recog, void *dummy)
 2nd pass: output a sentence hypothesis found in the 2nd pass.
static void status_pass2_begin (Recog *recog, void *dummy)
 2nd pass: output at the start of result output (will be called before all the result output in the 2nd pass).
static void status_pass2_end (Recog *recog, void *dummy)
 2nd pass: end output
static void result_graph (Recog *recog, void *dummy)
 Output the whole word graph.
static void result_confnet (Recog *recog, void *dummy)
 Output the obtained confusion network.
static void result_gmm (Recog *recog, void *dummy)
 Output result of GMM computation to standard out.
void print_all_gram (Recog *recog)
 Output current list of grammars to stdout.
static void levelmeter (Recog *recog, SP16 *buf, int len, void *dummy)
static void frame_indicator (Recog *recog, void *dummy)
void setup_output_tty (Recog *recog, void *data)

Variables

boolean separate_score_flag
boolean callback_debug_flag
static char * hookstr [] = {"", "delete", "activate", "deactivate"}
 Grammar status to be processed in the next reload timing.
static boolean have_progout = FALSE
static WORD_ID confword [MAXSEQNUM]
static int confwordnum
static char inbuf [MAXBUFLEN]
static char outbuf [MAXBUFLEN]
static int wst
 Number of words at previous output line.
static int writelen
 written string length on this tty 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 output_stdout.c.


Function Documentation

static void status_param ( Recog recog,
void *  dummy 
) [static]

Output input parameter status such as length.

Parameters:
param [in] input parameter structure

Definition at line 180 of file output_stdout.c.

static void status_recognition_begin ( Recog recog,
void *  dummy 
) [static]

Output message when recognition is just started for an incoming input.

When short-pause segmentation mode, this will be called for the first input. segment.

Definition at line 205 of file output_stdout.c.

static void status_recognition_end ( Recog recog,
void *  dummy 
) [static]

Output message when the whole recognition procedure was just finished for an input.

When short-pause segmentation mode, this will be called after all the segmentd input fragments are recognized.

Definition at line 228 of file output_stdout.c.

static void result_pass1_current ( Recog recog,
void *  dummy 
) [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 339 of file output_stdout.c.

static void result_pass1 ( Recog recog,
void *  dummy 
) [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 475 of file output_stdout.c.

static void put_hypo_woutput ( WORD_ID seq,
int  n,
WORD_INFO winfo 
) [static]

Output word sequence of a hypothesis.

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

Definition at line 644 of file output_stdout.c.

Referenced by put_all_in_stack(), and result_pass2().

static void put_hypo_wname ( WORD_ID seq,
int  n,
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 671 of file output_stdout.c.

Referenced by result_pass2().

static void put_hypo_phoneme ( WORD_ID seq,
int  n,
WORD_INFO winfo 
) [static]

Output phoneme sequence of a hypothesis.

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

Definition at line 698 of file output_stdout.c.

Referenced by output_result(), and result_pass2().

static void result_pass2 ( Recog recog,
void *  dummy 
) [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 776 of file output_stdout.c.

static void result_graph ( Recog recog,
void *  dummy 
) [static]

Output the whole word graph.

Parameters:
root [in] pointer to the first element of graph words
winfo [in] word dictionary

Definition at line 1069 of file output_stdout.c.

static void result_gmm ( Recog recog,
void *  dummy 
) [static]

Output result of GMM computation to standard out.

(for "-result tty" option)

Definition at line 1166 of file output_stdout.c.


Generated on Tue Dec 18 15:59:57 2007 for Julius by  doxygen 1.5.4