libsent/src/phmm/outprob_init.c File Reference

Initialize and setup the acoustic computation routines. More...

#include <sent/stddefs.h>
#include <sent/htk_hmm.h>
#include <sent/htk_param.h>
#include <sent/hmm.h>
#include <sent/hmm_calc.h>

Go to the source code of this file.

Functions

boolean outprob_init (HMMWork *wrk, HTK_HMM_INFO *hmminfo, HTK_HMM_INFO *gshmm, int gms_num, int gprune_method, int gprune_mixnum)
 Initialize and setup acoustic computation functions.
boolean outprob_prepare (HMMWork *wrk, int framenum)
 Prepare for the next input of given frame length.
void outprob_free (HMMWork *wrk)
 Free all work area for outprob computation.


Detailed Description

Initialize and setup the acoustic computation routines.

These functions switch computation function suitable for the given HMM types (tied-mixture or shared-state, use GMS or not, and so on). It also sets various parameters and global pointers for the likelihood computation. These functions should be called at first.

How to usage these acoustic computation routines:

  1. First call outprob_init() on startup to configure and setup functions
  2. For each input,
    1. call outprob_prepare() to prepare cache
    2. use outprob(t, hmmstate, param) to get output probability of a state

Author:
Akinobu LEE
Date:
Thu Feb 17 13:35:37 2005
Revision
1.1.1.1

Definition in file outprob_init.c.


Function Documentation

boolean outprob_init ( HMMWork wrk,
HTK_HMM_INFO hmminfo,
HTK_HMM_INFO gshmm,
int  gms_num,
int  gprune_method,
int  gprune_mixnum 
)

Initialize and setup acoustic computation functions.

Parameters:
wrk [i/o] HMM computation work area
hmminfo [in] HMM definition
gshmm [in] GMS HMM definition if exist, or NULL if not
gms_num [in] number of GMS HMM to compute (valid if gshmm != NULL)
gprune_method [in] gaussian pruning method
gprune_mixnum [in] number of pdf to compute at a codebook in gaussian pruning
Returns:
TRUE on success, FALSE on failure.

select functions

Definition at line 68 of file outprob_init.c.

Referenced by j_final_fusion().

boolean outprob_prepare ( HMMWork wrk,
int  framenum 
)

Prepare for the next input of given frame length.

Parameters:
wrk [i/o] HMM computation work area
framenum [in] input length in frame.
Returns:
TRUE on success, FALSE on failure.

Definition at line 166 of file outprob_init.c.

Referenced by get_back_trellis(), RealTimePipeLine(), and reset_mfcc().

void outprob_free ( HMMWork wrk  ) 

Free all work area for outprob computation.

Parameters:
wrk [i/o] HMM computation work area

Definition at line 187 of file outprob_init.c.

Referenced by j_process_am_free().


Generated on Tue Dec 18 16:01:40 2007 for Julius by  doxygen 1.5.4