PocketSphinx  0.6
acmod_s Struct Reference

Acoustic model structure. More...

#include <acmod.h>

Data Fields

cmd_ln_t * config
 Configuration.
logmath_t * lmath
 Log-math computation.
glist_t strings
 Temporary acoustic model filenames.
fe_t * fe
 Acoustic feature computation.
feat_t * fcb
 Dynamic feature computation.
bin_mdef_tmdef
 Model definition.
tmat_ttmat
 Transition matrices.
ps_mgau_tmgau
 Model parameters.
ps_mllr_tmllr
 Speaker transformation.
int16 * senone_scores
 GMM scores for current frame.
bitvec_t * senone_active_vec
 Active GMMs in current frame.
uint8 * senone_active
 Array of deltas to active GMMs.
int senscr_frame
 Frame index for senone_scores.
int n_senone_active
 Number of active GMMs.
int log_zero
 Zero log-probability value.
mfcc_t ** mfc_buf
 Temporary buffer of acoustic features.
mfcc_t *** feat_buf
 Temporary buffer of dynamic features.
FILE * rawfh
 File for writing raw audio data.
FILE * mfcfh
 File for writing acoustic feature data.
FILE * senfh
 File for writing senone score data.
FILE * insenfh
 Input senone score file.
long * framepos
 File positions of recent frames in senone file.
uint8 state
 State of utterance processing.
uint8 compallsen
 Compute all senones?
uint8 grow_feat
 Whether to grow feat_buf.
uint8 insen_swap
 Whether to swap input senone score.
int16 output_frame
 Index of next frame of dynamic features.
int16 n_mfc_alloc
 Number of frames allocated in mfc_buf.
int16 n_mfc_frame
 Number of frames active in mfc_buf.
int16 mfc_outidx
 Start of active frames in mfc_buf.
int16 n_feat_alloc
 Number of frames allocated in feat_buf.
int16 n_feat_frame
 Number of frames active in feat_buf.
int16 feat_outidx
 Start of active frames in feat_buf.

Detailed Description

Acoustic model structure.

This object encapsulates all stages of acoustic processing, from raw audio input to acoustic score output. The reason for grouping all of these modules together is that they all have to "agree" in their parameterizations, and the configuration of the acoustic and dynamic feature computation is completely dependent on the parameters used to build the original acoustic model (which should by now always be specified in a feat.params file).

Because there is not a one-to-one correspondence from blocks of input audio or frames of input features to frames of acoustic scores (due to dynamic feature calculation), results may not be immediately available after input, and the output results will not correspond to the last piece of data input.

TODO: In addition, this structure serves the purpose of queueing frames of features (and potentially also scores in the future) for asynchronous passes of recognition operating in parallel.

Definition at line 147 of file acmod.h.


Field Documentation

cmd_ln_t* acmod_s::config

Configuration.

Definition at line 149 of file acmod.h.

Referenced by acmod_init(), acmod_set_insenfh(), and acmod_write_senfh_header().

feat_t* acmod_s::fcb

Dynamic feature computation.

Definition at line 155 of file acmod.h.

Referenced by acmod_free(), acmod_init(), acmod_process_cep(), acmod_process_feat(), and ps_get_feat().

fe_t* acmod_s::fe

Acoustic feature computation.

Definition at line 154 of file acmod.h.

Referenced by acmod_end_utt(), acmod_free(), acmod_init(), acmod_process_raw(), acmod_start_utt(), and ps_get_fe().

mfcc_t*** acmod_s::feat_buf

Temporary buffer of dynamic features.

Definition at line 173 of file acmod.h.

Referenced by acmod_free(), acmod_get_frame(), acmod_init(), acmod_process_cep(), acmod_process_feat(), and acmod_score().

File positions of recent frames in senone file.

Definition at line 178 of file acmod.h.

Referenced by acmod_free(), acmod_init(), acmod_read_scores(), and acmod_score().

Whether to grow feat_buf.

Definition at line 183 of file acmod.h.

Referenced by acmod_process_cep(), acmod_process_feat(), acmod_read_scores(), and acmod_set_grow().

Whether to swap input senone score.

Definition at line 184 of file acmod.h.

Input senone score file.

Definition at line 177 of file acmod.h.

Referenced by acmod_read_scores(), acmod_score(), and acmod_set_insenfh().

logmath_t* acmod_s::lmath

Log-math computation.

Definition at line 150 of file acmod.h.

Referenced by acmod_init(), acmod_write_senfh_header(), ngram_search_init(), and ps_lattice_init_search().

Zero log-probability value.

Definition at line 169 of file acmod.h.

Referenced by acmod_init().

mfcc_t** acmod_s::mfc_buf

Temporary buffer of acoustic features.

Definition at line 172 of file acmod.h.

Referenced by acmod_end_utt(), acmod_free(), acmod_init(), and acmod_process_raw().

File for writing acoustic feature data.

Definition at line 175 of file acmod.h.

Referenced by acmod_end_utt(), acmod_free(), acmod_process_cep(), and acmod_set_mfcfh().

Model parameters.

Definition at line 160 of file acmod.h.

Referenced by acmod_advance(), acmod_free(), acmod_rewind(), acmod_score(), acmod_start_utt(), and acmod_update_mllr().

Speaker transformation.

Definition at line 161 of file acmod.h.

Referenced by acmod_free(), and acmod_update_mllr().

Index of next frame of dynamic features.

Definition at line 185 of file acmod.h.

Referenced by acmod_advance(), acmod_flags2list(), acmod_read_scores(), acmod_rewind(), acmod_start_utt(), ps_end_utt(), ps_get_n_frames(), and ps_get_utt_time().

File for writing raw audio data.

Definition at line 174 of file acmod.h.

Referenced by acmod_end_utt(), acmod_free(), acmod_process_raw(), and acmod_set_rawfh().

File for writing senone score data.

Definition at line 176 of file acmod.h.

Referenced by acmod_end_utt(), acmod_free(), acmod_score(), and acmod_set_senfh().

Array of deltas to active GMMs.

Definition at line 166 of file acmod.h.

Referenced by acmod_best_score(), acmod_flags2list(), acmod_free(), acmod_init(), and acmod_score().

Active GMMs in current frame.

Definition at line 165 of file acmod.h.

Referenced by acmod_clear_active(), acmod_flags2list(), acmod_free(), and acmod_init().

GMM scores for current frame.

Definition at line 164 of file acmod.h.

Referenced by acmod_best_score(), acmod_free(), acmod_init(), and acmod_score().

Frame index for senone_scores.

Definition at line 167 of file acmod.h.

Referenced by acmod_read_scores(), acmod_rewind(), acmod_score(), and acmod_start_utt().

State of utterance processing.

Definition at line 181 of file acmod.h.

Referenced by acmod_end_utt(), acmod_init(), acmod_process_cep(), and acmod_start_utt().

Temporary acoustic model filenames.

Definition at line 151 of file acmod.h.

Transition matrices.

Definition at line 159 of file acmod.h.

Referenced by acmod_free(), and ngram_search_init().


The documentation for this struct was generated from the following file: