# files

name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/acmod.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ps_lattice_internal.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ngram_search.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/bin_mdef.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/blkarray_list.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/mdef.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/dict2pid.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/dict.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/fsg_lextree.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/fsg_history.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/fsg_lextree.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/fsg_search_internal.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ms_gauden.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/hmm.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ms_mgau.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/phone_loop_search.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ps_alignment.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/pocketsphinx_internal.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ptm_mgau.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/s2_semi_mgau.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ms_senone.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/state_align_search.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/tmat.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/s2_semi_mgau.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/include/cmdln_macro.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/include/fsg_set.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/fsg_search.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/include/pocketsphinx.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/pocketsphinx.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/include/pocketsphinx_export.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/include/ps_lattice.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ps_lattice.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/include/ps_mllr.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ps_mllr.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/acmod.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/bin_mdef.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/blkarray_list.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/dict.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/dict2pid.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/fsg_history.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/hmm.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/mdef.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ms_gauden.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ms_mgau.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ms_senone.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ngram_search.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ngram_search_fwdflat.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ngram_search_fwdflat.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ngram_search_fwdtree.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ngram_search_fwdtree.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/phone_loop_search.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ps_alignment.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/ptm_mgau.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/s3types.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/state_align_search.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/tied_mgau_common.h


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/tmat.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/vector.c


name:
/srv2/lede/lede-20171030/build_dir/target-mips_24kc_musl/freeswitch-1.6.19/libs/pocketsphinx-0.8/src/libpocketsphinx/vector.h


# memberdef

refid: a742d6a125ac468b95a1ddd880a956e35
name: hmm
definition: hmm_t chan_s::hmm
type: hmm_t
scope: chan_s
briefdescription: Basic HMM structure.
detaileddescription:
  This <em>must</em> be first in
the structure because chan_t and root_chan_t are
sometimes used interchangeably  


refid: a260b68eff64150d0ae9ce4db7feb1300
name: next
definition: struct chan_s* chan_s::next
type: struct chan_s *
scope: chan_s
briefdescription:
first descendant of this channel; or, in the
      case of the last phone of a word, the next
      alternative right context channel


refid: a136796f6a13c0d6989120f9aa25b85f1
name: penult_phn_wid
definition: int32 chan_s::penult_phn_wid
type: int32
scope: chan_s
detaileddescription: Used only within HMM tree. -1 if none
briefdescription:
list of words whose last phone follows this one;
this field indicates the first of the list; the
rest must be built up in a separate array.


refid: a96e20b175c00c4edcd75d922dba067cd
name: filler
definition: int32 ciphone_t::filler
type: int32
scope: ciphone_t
briefdescription:
Whether a filler phone; if so, can be substituted by
silence phone in left or right context position.


refid: a609288c1f4cee2ea2e82bc5e391b894a
name: ldiph_lc
definition: s3ssid_t*** dict2pid_t::ldiph_lc
type: s3ssid_t ***
scope: dict2pid_t
briefdescription:
For multi-phone words, [base][rc][lc] -> ssid; filled out for
      word-initial base x rc combinations in current vocabulary.


refid: a4eec4de961e2374a6a4c06bb9dde39d8
name: lrdiph_rc
definition: s3ssid_t*** dict2pid_t::lrdiph_rc
type: s3ssid_t ***
scope: dict2pid_t
briefdescription:
For single-phone words, [base][lc][rc] -> ssid; filled out for
 single-phone base x lc combinations in current vocabulary.


refid: a6c1de8a269f6ff37dce3dd8cbec4235a
name: lrssid
definition: xwdssid_t** dict2pid_t::lrssid
type: xwdssid_t **
scope: dict2pid_t
briefdescription:
Left-Right context state sequence id table 
First dimension: base phone,
Second dimension: left context.


refid: ab08100d4953998dad76bfcf30864c0c5
name: dist
definition: mfcc_t gauden_dist_t::dist
type: mfcc_t
scope: gauden_dist_t
briefdescription:
Density value for input observation wrt above codeword;
NOTE: result in logs3 domain, but var_t used for speed.


refid: ae2ba90b39a79603022daae3c9270a0b7
name: cd2cisen
definition: int16* mdef_t::cd2cisen
type: int16 *
scope: mdef_t
briefdescription:
Parent CI-senone id for each senone; the first
n_ci_sen are identity mappings; the CD-senones are
contiguous for each parent CI-phone.


refid: a5dd5c3d3058a314f4c971a14d1df5f38
name: wpos_ci_lclist
definition: ph_lc_t*** mdef_t::wpos_ci_lclist
type: ph_lc_t ***
scope: mdef_t
briefdescription: wpos_ci_lclist[wpos][ci] = list of lc for <wpos,ci>.
detaileddescription:
wpos_ci_lclist[wpos][ci][lc].rclist = list of rc for
<wpos,ci,lc>.  Only entries for the known triphones
are created to conserve space.
(NOTE: FOR INTERNAL USE ONLY.)  


refid: ae1b0a51cfcddc1e4b6ac94fa1e48887a
name: root_chan
definition: root_chan_t* ngram_search_s::root_chan
type: root_chan_t *
scope: ngram_search_s
briefdescription: Search structure of HMM instances.
detaileddescription:
The word triphone sequences (HMM instances) are transformed
into tree structures, one tree per unique left triphone in the
entire dictionary (actually diphone, since its left context
varies dyamically during the search process).  The entire set
of trees of channels is allocated once and for all during
initialization (since dynamic management of active CHANs is
time consuming), with one exception: the last phones of words,
that need multiple right context modelling, are not maintained
in this static structure since there are too many of them and
few are active at any time.  Instead they are maintained as
linked lists of CHANs, one list per word, and each CHAN in this
set is allocated only on demand and freed if inactive.Roots of search tree.  


refid: a79deb7295a261cd82d2a6b48cb119e77
name: word_chan
definition: chan_t** ngram_search_s::word_chan
type: chan_t **
scope: ngram_search_s
detaileddescription:
  WARNING: For single-phone words and
fwdflat search, this actually contains pointers to root_chan_t,
which are allocated using root_chan_alloc.  This is a
suboptimal state of affairs.

briefdescription:
Channels associated with a given word (only used for right
contexts, single-phone words in fwdtree search, and word HMMs
in fwdflat search).


refid: ab251bb3d0ddd33dd99ed390b61e481f2
name: homophone_set
definition: int32* ngram_search_s::homophone_set
type: int32 *
scope: ngram_search_s
detaileddescription:
  The channel node points to one word in this
set of words.  The remaining words are linked through
homophone_set[].

Single-phone words are not represented in the HMM tree; they
are kept in word_chan.

Specifically, homophone_set[w] = wid of next word in the same
set as w.

briefdescription:
Each node in the HMM tree structure may point to a set of words
whose last phone would follow that node in the tree structure
(but is not included in the tree structure for reasons
explained above).


refid: a83731bf0e2234e632c5e78f2321f5b2d
name: active_chan_list
definition: chan_t*** ngram_search_s::active_chan_list
type: chan_t ***
scope: ngram_search_s
briefdescription: Array of active channels for current and next frame.
detaileddescription:
In any frame, only some HMM tree nodes are active.
active_chan_list[f mod 2] = list of nonroot channels in the HMM
tree active in frame f.


refid: a5056573bf95990cc28c97a56cd76ce9a
name: active_word_list
definition: int32** ngram_search_s::active_word_list
type: int32 **
scope: ngram_search_s
briefdescription: Array of active multi-phone words for current and next frame.
detaileddescription:
Similarly to active_chan_list, active_word_list[f mod 2] = list
of word ids for which active channels exist in word_chan in
frame f.

Statically allocated single-phone words are always active and
should not appear in this list.


refid: a48d7877641444381ce3eed04749d4d38
name: frame_eval
type: int(*
scope: ps_mgaufuncs_s
definition:
int(* ps_mgaufuncs_s::frame_eval)(ps_mgau_t *mgau, int16 *senscr, uint8 *senone_active, int32 n_senone_active, mfcc_t **feat, int32 frame, int32 compallsen)

argsstring:
)(ps_mgau_t *mgau, int16 *senscr, uint8 *senone_active, int32 n_senone_active, mfcc_t **feat, int32 frame, int32 compallsen)


refid: a9d4d92ffa8b4079202ddebe3ba0eb290
name: hmm
definition: hmm_t root_chan_s::hmm
type: hmm_t
scope: root_chan_s
briefdescription: Basic HMM structure.
detaileddescription:
  This <em>must</em> be first in
the structure because chan_t and root_chan_t are
sometimes used interchangeably.  


refid: af5bb41f0c9a03211ab90919f65be1564
name: this_phn_wid
definition: int32 root_chan_s::this_phn_wid
type: int32
scope: root_chan_s
briefdescription:
list of words consisting of this single phone;
actually the first of the list, like penult_phn_wid;
-1 if none


refid: aa7e23dc8a18875bad1c1b9c322f3cad4
name: pdf
definition: senprob_t*** senone_t::pdf
type: senprob_t ***
scope: senone_t
detaileddescription:
  Not an
efficient representation&ndash;memory access-wise&ndash;but
evaluating the many codebooks will be more costly.
if (n_gauden == 1): pdf[feat][codeword][sen].  Optimized
for the shared-distribution semi-continuous case.  

briefdescription:
gaussian density mixture weights, organized two possible
ways depending on n_gauden:
if (n_gauden > 1): pdf[sen][feat][codeword].


refid: a9f518c96b30dab9efdb69bd779a7b5bf
name: tp
definition: uint8*** tmat_t::tp
type: uint8 ***
scope: tmat_t
briefdescription:
The transition matrices; kept in the same scale as acoustic scores;
      tp[tmatid][from-state][to-state].


refid: a3633c71659e30cf23bee1f7efb4b4805
name: n_state
definition: int16 tmat_t::n_state
type: int16
scope: tmat_t
briefdescription:
Number source states in matrix (only the emitting states);
Number destination states = n_state+1, it includes the exit state.


refid: afef74c46dd7f673605876b740ab936b3
name: POCKETSPHINX_OPTIONS
briefdescription: Minimal set of command-line options for PocketSphinx.
initializer:
waveform_to_cepstral_command_line_macro(), \
    cepstral_to_feature_command_line_macro(), \
    POCKETSPHINX_ACMOD_OPTIONS, \
        POCKETSPHINX_BEAM_OPTIONS,   \
        POCKETSPHINX_SEARCH_OPTIONS, \
        POCKETSPHINX_DICT_OPTIONS, \
        POCKETSPHINX_NGRAM_OPTIONS, \
        POCKETSPHINX_FSG_OPTIONS, \
        POCKETSPHINX_DEBUG_OPTIONS


refid: ad5fdee79bb4ce0098f23c11c20dc5880
name: POCKETSPHINX_DEBUG_OPTIONS
briefdescription: Options for debugging and logging.
initializer:
{ "-logfn",                                         \
            ARG_STRING,                                 \
            NULL,                                       \
            "File to write log messages in"             \
     },                                                 \
    { "-debug",                                         \
            ARG_INT32,                                  \
            NULL,                                       \
            "Verbosity level for debugging messages"    \
     },                                                 \
     { "-mfclogdir",                                    \
             ARG_STRING,                                \
             NULL,                                      \
             "Directory to log feature files to"        \
             },                                         \
    { "-rawlogdir",                                     \
            ARG_STRING,                                 \
            NULL,                                       \
            "Directory to log raw audio files to" },    \
     { "-senlogdir",                                    \
             ARG_STRING,                                \
             NULL,                                      \
             "Directory to log senone score files to"   \
             }


refid: a8e5b05511409383ec802553c74652d74
name: POCKETSPHINX_FSG_OPTIONS
briefdescription: Command-line options for finite state grammars.
initializer:
{ "-fsg",                                                   \
            ARG_STRING,                                         \
            NULL,                                               \
            "Sphinx format finite state grammar file"},         \
{ "-jsgf",                                                      \
        ARG_STRING,                                             \
        NULL,                                                   \
        "JSGF grammar file" },                                  \
{ "-toprule",                                                   \
        ARG_STRING,                                             \
        NULL,                                                   \
        "Start rule for JSGF (first public rule is default)" }, \
{ "-fsgusealtpron",                                             \
        ARG_BOOLEAN,                                            \
        "yes",                                                  \
        "Add alternate pronunciations to FSG"},                 \
{ "-fsgusefiller",                                              \
        ARG_BOOLEAN,                                            \
        "yes",                                                  \
        "Insert filler words at each state."}


refid: a436ba5f95666f2e7a473a10083c276bb
name: POCKETSPHINX_DICT_OPTIONS
briefdescription: Command-line options for dictionaries.
initializer:
{ "-dict",							\
      REQARG_STRING,						\
      NULL,							\
      "Main pronunciation dictionary (lexicon) input file" },	\
    { "-fdict",							\
      ARG_STRING,						\
      NULL,							\
      "Noise word pronunciation dictionary input file" },	\
    { "-dictcase",						\
      ARG_BOOLEAN,						\
      "no",							\
      "Dictionary is case sensitive (NOTE: case insensitivity applies to ASCII characters only)" },	\
    { "-maxnewoov",						\
      ARG_INT32,						\
      "20",							\
      "Maximum new OOVs that can be added at run time" },	\
    { "-usewdphones",						\
      ARG_BOOLEAN,						\
      "no",							\
      "Use within-word phones only" }


refid: a283d0bc1d33f1f6d961bdfbb7939b853
name: fsg_set_add
definition: POCKETSPHINX_EXPORT fsg_model_t* fsg_set_add
type: POCKETSPHINX_EXPORT fsg_model_t *
argsstring: (fsg_set_t *fsgs, char const *name, fsg_model_t *wfsg)
briefdescription: Add the given FSG to the collection of FSGs known to this search object.
detaileddescription:
The given fsg is simply added to the collection.  It is not automatically
made the currently active one.

@param name Name to associate with this FSG.  If NULL, this will be
           taken from the FSG structure.
@return A pointer to the FSG associated with name, or NULL on
        failure.  If this pointer is not equal to wfsg, then there
        was a name conflict, and wfsg was not added.


refid: ad033da98d0f7785d6ab89a41dac3cc7c
name: ps_init
definition: POCKETSPHINX_EXPORT ps_decoder_t* ps_init
type: POCKETSPHINX_EXPORT ps_decoder_t *
argsstring: (cmd_ln_t *config)
briefdescription: Initialize the decoder from a configuration object.
detaileddescription:
@note The decoder retains ownership of the pointer
<code>config</code>, so you must not attempt to free it manually.
If you wish to reuse it elsewhere, call cmd_ln_retain() on it.

@param config a command-line structure, as created by
cmd_ln_parse_r() or cmd_ln_parse_file_r().


refid: a391679e7edb0de1e324aa302ee820287
name: ps_reinit
definition: POCKETSPHINX_EXPORT int ps_reinit
type: POCKETSPHINX_EXPORT int
argsstring: (ps_decoder_t *ps, cmd_ln_t *config)
briefdescription: Reinitialize the decoder with updated configuration.
detaileddescription:
This function allows you to switch the acoustic model, dictionary,
or other configuration without creating an entirely new decoding
object.

@note The decoder retains ownership of the pointer
<code>config</code>, so you must not attempt to free it manually.
If you wish to reuse it elsewhere, call cmd_ln_retain() on it.

@param ps Decoder.
@param config An optional new configuration to use.  If this is
              NULL, the previous configuration will be reloaded,
              with any changes applied.
@return 0 for success, <0 for failure.


refid: ad873ea6e20f91a3284963d5c34331c58
name: ps_args
definition: POCKETSPHINX_EXPORT arg_t const* ps_args
type: POCKETSPHINX_EXPORT arg_t const *
argsstring: (void)
briefdescription: Returns the argument definitions used in ps_init().
detaileddescription:
This is here to avoid exporting global data, which is problematic
on Win32 and Symbian (and possibly other platforms).


refid: a8d912ce9a5fea61b7b10db1750531c34
name: ps_retain
definition: POCKETSPHINX_EXPORT ps_decoder_t* ps_retain
type: POCKETSPHINX_EXPORT ps_decoder_t *
argsstring: (ps_decoder_t *ps)
briefdescription: Retain a pointer to the decoder.
detaileddescription:
This increments the reference count on the decoder, allowing it to
be shared between multiple parent objects.  In general you will not
need to use this function, ever.  It is mainly here for the
convenience of scripting language bindings.

@return pointer to retained decoder.


refid: ad8fd9b79ae9f87703af3f4755b3ab567
name: ps_free
definition: POCKETSPHINX_EXPORT int ps_free
type: POCKETSPHINX_EXPORT int
argsstring: (ps_decoder_t *ps)
briefdescription: Finalize the decoder.
detaileddescription:
This releases all resources associated with the decoder, including
any language models or grammars which have been added to it, and
the initial configuration object passed to ps_init().

@param ps Decoder to be freed.
@return New reference count (0 if freed).


refid: abb9256d8f7217a1e929509090df1f35b
name: ps_get_config
definition: POCKETSPHINX_EXPORT cmd_ln_t* ps_get_config
type: POCKETSPHINX_EXPORT cmd_ln_t *
argsstring: (ps_decoder_t *ps)
briefdescription: Get the configuration object for this decoder.
detaileddescription:
@return The configuration object for this decoder.  The decoder
        retains ownership of this pointer, so you should not
        attempt to free it manually.  Use cmd_ln_retain() if you
        wish to reuse it elsewhere.


refid: a249cfc383b7d9111a28b550945a606b5
name: ps_get_logmath
definition: POCKETSPHINX_EXPORT logmath_t* ps_get_logmath
type: POCKETSPHINX_EXPORT logmath_t *
argsstring: (ps_decoder_t *ps)
briefdescription: Get the log-math computation object for this decoder.
detaileddescription:
@return The log-math object for this decoder.  The decoder retains
        ownership of this pointer, so you should not attempt to
        free it manually.  Use logmath_retain() if you wish to
        reuse it elsewhere.


refid: a6237e2822756f230b88019b533a28724
name: ps_get_fe
definition: POCKETSPHINX_EXPORT fe_t* ps_get_fe
type: POCKETSPHINX_EXPORT fe_t *
argsstring: (ps_decoder_t *ps)
briefdescription: Get the feature extraction object for this decoder.
detaileddescription:
@return The feature extraction object for this decoder.  The
        decoder retains ownership of this pointer, so you should
        not attempt to free it manually.  Use fe_retain() if you
        wish to reuse it elsewhere.


refid: a0d74d90f0db0782386487cc061a09218
name: ps_get_feat
definition: POCKETSPHINX_EXPORT feat_t* ps_get_feat
type: POCKETSPHINX_EXPORT feat_t *
argsstring: (ps_decoder_t *ps)
briefdescription: Get the dynamic feature computation object for this decoder.
detaileddescription:
@return The dynamic feature computation object for this decoder.  The
        decoder retains ownership of this pointer, so you should
        not attempt to free it manually.  Use feat_retain() if you
        wish to reuse it elsewhere.


refid: a85e04bcbf5366f1bdad555dbb4d73d5d
name: ps_update_mllr
definition: POCKETSPHINX_EXPORT ps_mllr_t* ps_update_mllr
type: POCKETSPHINX_EXPORT ps_mllr_t *
argsstring: (ps_decoder_t *ps, ps_mllr_t *mllr)
briefdescription: Adapt current acoustic model using a linear transform.
detaileddescription:
@param mllr The new transform to use, or NULL to update the existing
             transform.  The decoder retains ownership of this pointer,
             so you should not attempt to free it manually.  Use
             ps_mllr_retain() if you wish to reuse it
             elsewhere.
@return The updated transform object for this decoder, or
        NULL on failure.


refid: ab9e59bf2ebf2aa1a6a781371685f8740
name: ps_get_lmset
definition: POCKETSPHINX_EXPORT ngram_model_t* ps_get_lmset
type: POCKETSPHINX_EXPORT ngram_model_t *
argsstring: (ps_decoder_t *ps)
briefdescription: Get the language model set object for this decoder.
detaileddescription:
If N-Gram decoding is not enabled, this will return NULL.  You will
need to enable it using ps_update_lmset().

@return The language model set object for this decoder.  The
        decoder retains ownership of this pointer, so you should
        not attempt to free it manually.  Use ngram_model_retain()
        if you wish to reuse it elsewhere.


refid: ae00bebeadaa6fc6fa8eb93b450651dc5
name: ps_update_lmset
definition: POCKETSPHINX_EXPORT ngram_model_t* ps_update_lmset
type: POCKETSPHINX_EXPORT ngram_model_t *
argsstring: (ps_decoder_t *ps, ngram_model_t *lmset)
briefdescription: Update the language model set object for this decoder.
detaileddescription:
This function does several things.  Most importantly, it enables
N-Gram decoding if not currently enabled.  It also updates internal
data structures to reflect any changes made to the language model
set (e.g. switching language models, adding words, etc).

@param lmset The new lmset to use, or NULL to update the existing
             lmset.  The decoder retains ownership of this pointer,
             so you should not attempt to free it manually.  Use
             ngram_model_retain() if you wish to reuse it
             elsewhere.
@return The updated language model set object for this decoder, or
        NULL on failure.


refid: a784b72a30fc7ec25e26a0380df46f8be
name: ps_get_fsgset
definition: POCKETSPHINX_EXPORT fsg_set_t* ps_get_fsgset
type: POCKETSPHINX_EXPORT fsg_set_t *
argsstring: (ps_decoder_t *ps)
briefdescription: Get the finite-state grammar set object for this decoder.
detaileddescription:
If FSG decoding is not enabled, this returns NULL.  Call
ps_update_fsgset() to enable it.

@return The current FSG set object for this decoder, or
        NULL if none is available.


refid: a3aaadef189cda344cd109c3110606aba
name: ps_update_fsgset
definition: POCKETSPHINX_EXPORT fsg_set_t* ps_update_fsgset
type: POCKETSPHINX_EXPORT fsg_set_t *
argsstring: (ps_decoder_t *ps)
briefdescription: Update the finite-state grammar set object for this decoder.
detaileddescription:
This function does several things.  Most importantly, it enables
FSG decoding if not currently enabled.  It also updates internal
data structures to reflect any changes made to the FSG set.

@return The current FSG set object for this decoder, or
        NULL on failure.


refid: a824f46e51681d931b7e2706a86c3d86f
name: ps_load_dict
definition: POCKETSPHINX_EXPORT int ps_load_dict
type: POCKETSPHINX_EXPORT int
argsstring: (ps_decoder_t *ps, char const *dictfile, char const *fdictfile, char const *format)
briefdescription: Reload the pronunciation dictionary from a file.
detaileddescription:
This function replaces the current pronunciation dictionary with
the one stored in dictfile.  This also causes the active search
module(s) to be reinitialized, in the same manner as calling
ps_add_word() with update=TRUE.

@param dictfile Path to dictionary file to load.
@param fdictfile Path to filler dictionary to load, or NULL to keep
                 the existing filler dictionary.
@param format Format of the dictionary file, or NULL to determine
              automatically (currently unused,should be NULL)


refid: a5e278377cc57d921591ce95b980760d5
name: ps_save_dict
definition: POCKETSPHINX_EXPORT int ps_save_dict
type: POCKETSPHINX_EXPORT int
argsstring: (ps_decoder_t *ps, char const *dictfile, char const *format)
briefdescription: Dump the current pronunciation dictionary to a file.
detaileddescription:
This function dumps the current pronunciation dictionary to a tex

@param dictfile Path to file where dictionary will be written.
@param format Format of the dictionary file, or NULL for the
              default (text) format (currently unused, should be NULL)


refid: a5f3c4fcdbef34915c4e785ac9a1c6005
name: ps_add_word
definition: POCKETSPHINX_EXPORT int ps_add_word
type: POCKETSPHINX_EXPORT int
argsstring: (ps_decoder_t *ps, char const *word, char const *phones, int update)
briefdescription: Add a word to the pronunciation dictionary.
detaileddescription:
This function adds a word to the pronunciation dictionary and the
current language model (but, obviously, not to the current FSG if
FSG mode is enabled).  If the word is already present in one or the
other, it does whatever is necessary to ensure that the word can be
recognized.

@param word Word string to add.
@param phones Whitespace-separated list of phoneme strings
              describing pronunciation of <code>word</code>.
@param update If TRUE, update the search module (whichever one is
              currently active) to recognize the newly added word.
              If adding multiple words, it is more efficient to
              pass FALSE here in all but the last word.
@return The internal ID (>= 0) of the newly added word, or <0 on
        failure.


refid: ac9a9a0df5cebda28876c1e95bd197321
name: ps_decode_raw
definition: POCKETSPHINX_EXPORT int ps_decode_raw
type: POCKETSPHINX_EXPORT int
argsstring: (ps_decoder_t *ps, FILE *rawfh, char const *uttid, long maxsamps)
briefdescription: Decode a raw audio stream.
detaileddescription:
No headers are recognized in this files.  The configuration
parameters <tt>-samprate</tt> and <tt>-input_endian</tt> are used
to determine the sampling rate and endianness of the stream,
respectively.  Audio is always assumed to be 16-bit signed PCM.

@param ps Decoder.
@param rawfh Previously opened file stream.
@param uttid Utterance ID (or NULL to generate automatically).
@param maxsamps Maximum number of samples to read from rawfh, or -1
                to read until end-of-file.
@return Number of samples of audio.


refid: aa2957bf4fb90d6a78d1daffd3dd82c3f
name: ps_decode_senscr
definition: POCKETSPHINX_EXPORT int ps_decode_senscr
type: POCKETSPHINX_EXPORT int
argsstring: (ps_decoder_t *ps, FILE *senfh, char const *uttid)
briefdescription: Decode a senone score dump file.
detaileddescription:
@param ps Decoder
@param fh Previously opened file handle positioned at start of file.
@param uttid Utterance ID (or NULL to generate automatically).
@return Number of frames read.


refid: a0b70e54570e21ad3a784b40071818579
name: ps_start_utt
definition: POCKETSPHINX_EXPORT int ps_start_utt
type: POCKETSPHINX_EXPORT int
argsstring: (ps_decoder_t *ps, char const *uttid)
briefdescription: Start utterance processing.
detaileddescription:
This function should be called before any utterance data is passed
to the decoder.  It marks the start of a new utterance and
reinitializes internal data structures.

@param ps Decoder to be started.
@param uttid String uniquely identifying this utterance.  If NULL,
             one will be created.
@return 0 for success, <0 on error.


refid: a4a949fc555734d1e1b9f6fd4a19008c2
name: ps_get_uttid
definition: POCKETSPHINX_EXPORT char const* ps_get_uttid
type: POCKETSPHINX_EXPORT char const *
argsstring: (ps_decoder_t *ps)
briefdescription: Get current utterance ID.
detaileddescription:
@param ps Decoder to query.
@return Read-only string of the current utterance ID.  This is
valid only until the beginning of the next utterance.


refid: a572ad08651b4caae820d178a12c8f95f
name: ps_process_raw
definition: POCKETSPHINX_EXPORT int ps_process_raw
type: POCKETSPHINX_EXPORT int
argsstring: (ps_decoder_t *ps, int16 const *data, size_t n_samples, int no_search, int full_utt)
briefdescription: Decode raw audio data.
detaileddescription:
@param ps Decoder.
@param no_search If non-zero, perform feature extraction but don't
                 do any recognition yet.  This may be necessary if
                 your processor has trouble doing recognition in
                 real-time.
@param full_utt If non-zero, this block of data is a full utterance
                worth of data.  This may allow the recognizer to
                produce more accurate results.
@return Number of frames of data searched, or <0 for error.


refid: abb3527e41c2f4cd64dccbdbd5f812d1d
name: ps_get_n_frames
definition: POCKETSPHINX_EXPORT int ps_get_n_frames
type: POCKETSPHINX_EXPORT int
argsstring: (ps_decoder_t *ps)
briefdescription: Get the number of frames of data searched.
detaileddescription:
Note that there is a delay between this and the number of frames of
audio which have been input to the system.  This is due to the fact
that acoustic features are computed using a sliding window of
audio, and dynamic features are computed over a sliding window of
acoustic features.

@param ps Decoder.
@return Number of frames of speech data which have been recognized
so far.


refid: ae4130fef938568440c014abae0e4de5e
name: ps_get_hyp
definition: POCKETSPHINX_EXPORT char const* ps_get_hyp
type: POCKETSPHINX_EXPORT char const *
argsstring: (ps_decoder_t *ps, int32 *out_best_score, char const **out_uttid)
briefdescription: Get hypothesis string and path score.
detaileddescription:
@param ps Decoder.
@param out_best_score Output: path score corresponding to returned string.
@param out_uttid Output: utterance ID for this utterance.
@return String containing best hypothesis at this point in
        decoding.  NULL if no hypothesis is available.


refid: af3431cf96766564d6ab2a3cc8e056860
name: ps_get_hyp_final
definition: POCKETSPHINX_EXPORT char const* ps_get_hyp_final
type: POCKETSPHINX_EXPORT char const *
argsstring: (ps_decoder_t *ps, int32 *out_is_final)
briefdescription: Get hypothesis string and final flag.
detaileddescription:
@param ps Decoder.
@param out_is_best_score Output: if hypothesis is reached final state in the grammar.
@return String containing best hypothesis at this point in
        decoding.  NULL if no hypothesis is available.


refid: afa6631ae5c30a30eec08c7bf1ef41ef5
name: ps_get_prob
definition: POCKETSPHINX_EXPORT int32 ps_get_prob
type: POCKETSPHINX_EXPORT int32
argsstring: (ps_decoder_t *ps, char const **out_uttid)
briefdescription: Get posterior probability.
detaileddescription:
@note Unless the -bestpath option is enabled, this function will
always return zero (corresponding to a posterior probability of
1.0).  Even if -bestpath is enabled, it will also return zero when
called on a partial result.  Ongoing research into effective
confidence annotation for partial hypotheses may result in these
restrictions being lifted in future versions.

@param ps Decoder.
@param out_uttid Output: utterance ID for this utterance.
@return Posterior probability of the best hypothesis.


refid: ac7e8897e5eed452f284bef3ee53d2429
name: ps_get_lattice
definition: POCKETSPHINX_EXPORT ps_lattice_t* ps_get_lattice
type: POCKETSPHINX_EXPORT ps_lattice_t *
argsstring: (ps_decoder_t *ps)
briefdescription: Get word lattice.
detaileddescription:
There isn't much you can do with this so far, a public API will
appear in the future.

@param ps Decoder.
@return Word lattice object containing all hypotheses so far.  NULL
        if no hypotheses are available.  This pointer is owned by
        the decoder and you should not attempt to free it manually.
        It is only valid until the next utterance, unless you use
        ps_lattice_retain() to retain it.


refid: a2216f6ff53f6bc9c78f285ee3fe0d665
name: ps_seg_iter
definition: POCKETSPHINX_EXPORT ps_seg_t* ps_seg_iter
type: POCKETSPHINX_EXPORT ps_seg_t *
argsstring: (ps_decoder_t *ps, int32 *out_best_score)
briefdescription: Get an iterator over the word segmentation for the best hypothesis.
detaileddescription:
@param ps Decoder.
@param out_best_score Output: path score corresponding to hypothesis.
@return Iterator over the best hypothesis at this point in
        decoding.  NULL if no hypothesis is available.


refid: ae16ba181f654ffc9bfbbe861e9315f12
name: ps_seg_next
definition: POCKETSPHINX_EXPORT ps_seg_t* ps_seg_next
type: POCKETSPHINX_EXPORT ps_seg_t *
argsstring: (ps_seg_t *seg)
briefdescription: Get the next segment in a word segmentation.
detaileddescription:
@param seg Segment iterator.
@return Updated iterator with the next segment.  NULL at end of
        utterance (the iterator will be freed in this case).


refid: a8a4fed34b58885627b53e99e90514169
name: ps_seg_word
definition: POCKETSPHINX_EXPORT char const* ps_seg_word
type: POCKETSPHINX_EXPORT char const *
argsstring: (ps_seg_t *seg)
briefdescription: Get word string from a segmentation iterator.
detaileddescription:
@param seg Segment iterator.
@return Read-only string giving string name of this segment.  This
is only valid until the next call to ps_seg_next().


refid: a045a044726b816678965514f2ee7d8c7
name: ps_seg_frames
definition: POCKETSPHINX_EXPORT void ps_seg_frames
type: POCKETSPHINX_EXPORT void
argsstring: (ps_seg_t *seg, int *out_sf, int *out_ef)
briefdescription: Get inclusive start and end frames from a segmentation iterator.
detaileddescription:
@note These frame numbers are inclusive, i.e. the end frame refers
to the last frame in which the given word or other segment was
active.  Therefore, the actual duration is *out_ef - *out_sf + 1.

@param seg Segment iterator.
@param out_sf Output: First frame index in segment.
@param out_sf Output: Last frame index in segment.


refid: adfd45d93c3fc9de6b7be89d5417f6abb
name: ps_seg_prob
definition: POCKETSPHINX_EXPORT int32 ps_seg_prob
type: POCKETSPHINX_EXPORT int32
argsstring: (ps_seg_t *seg, int32 *out_ascr, int32 *out_lscr, int32 *out_lback)
briefdescription: Get language, acoustic, and posterior probabilities from a segmentation iterator.
detaileddescription:
@note Unless the -bestpath option is enabled, this function will
always return zero (corresponding to a posterior probability of
1.0).  Even if -bestpath is enabled, it will also return zero when
called on a partial result.  Ongoing research into effective
confidence annotation for partial hypotheses may result in these
restrictions being lifted in future versions.

@param out_ascr Output: acoustic model score for this segment.
@param out_lscr Output: language model score for this segment.
@param out_lback Output: language model backoff mode for this
                 segment (i.e. the number of words used in
                 calculating lscr).  This field is, of course, only
                 meaningful for N-Gram models.
@return Log posterior probability of current segment.  Log is
        expressed in the log-base used in the decoder.  To convert
        to linear floating-point, use logmath_exp(ps_get_logmath(),
        pprob).


refid: af4bb6ba47844a135745db428919d9810
name: ps_nbest
definition: POCKETSPHINX_EXPORT ps_nbest_t* ps_nbest
type: POCKETSPHINX_EXPORT ps_nbest_t *
argsstring: (ps_decoder_t *ps, int sf, int ef, char const *ctx1, char const *ctx2)
briefdescription: Get an iterator over the best hypotheses, optionally within a selected region of the utterance.
detaileddescription:
 Iterator is empty now, it must
be advanced with ps_nbest_next first. The function may also
return a NULL which means that there is nohypothesis available for this
utterance.

@param ps Decoder.
@param sf Start frame for N-best search (0 for whole utterance) 
@param ef End frame for N-best search (-1 for whole utterance) 
@param ctx1 First word of trigram context (NULL for whole utterance)
@param ctx2 First word of trigram context (NULL for whole utterance)
@return Iterator over N-best hypotheses or NULL if no hypothesis is available


refid: a0942b8c0570009319a5be20ef1b52821
name: ps_nbest_next
definition: POCKETSPHINX_EXPORT ps_nbest_t* ps_nbest_next
type: POCKETSPHINX_EXPORT ps_nbest_t *
argsstring: (ps_nbest_t *nbest)
briefdescription: Move an N-best list iterator forward.
detaileddescription:
@param nbest N-best iterator.
@return Updated N-best iterator, or NULL if no more hypotheses are
        available (iterator is freed ni this case).


refid: a250c5f72d3addd0d0254f3ceeaa17ace
name: ps_nbest_hyp
definition: POCKETSPHINX_EXPORT char const* ps_nbest_hyp
type: POCKETSPHINX_EXPORT char const *
argsstring: (ps_nbest_t *nbest, int32 *out_score)
briefdescription: Get the hypothesis string from an N-best list iterator.
detaileddescription:
@param nbest N-best iterator.
@param out_score Output: Path score for this hypothesis.
@return String containing next best hypothesis.


refid: a1d2b6fd873d8213bd53a915ff2758785
name: ps_nbest_seg
definition: POCKETSPHINX_EXPORT ps_seg_t* ps_nbest_seg
type: POCKETSPHINX_EXPORT ps_seg_t *
argsstring: (ps_nbest_t *nbest, int32 *out_score)
briefdescription: Get the word segmentation from an N-best list iterator.
detaileddescription:
@param nbest N-best iterator.
@param out_score Output: Path score for this hypothesis.
@return Iterator over the next best hypothesis.


refid: aac7070c934a2d03d0d5b34e19614360f
name: ps_get_utt_time
definition: POCKETSPHINX_EXPORT void ps_get_utt_time
type: POCKETSPHINX_EXPORT void
argsstring: (ps_decoder_t *ps, double *out_nspeech, double *out_ncpu, double *out_nwall)
briefdescription: Get performance information for the current utterance.
detaileddescription:
@param ps Decoder.
@param out_nspeech Output: Number of seconds of speech.
@param out_ncpu    Output: Number of seconds of CPU time used.
@param out_nwall   Output: Number of seconds of wall time used.


refid: ad570c45dd72ad9ea8d57391fd2cd1c07
name: ps_latnode_t
definition: typedef struct ps_latnode_s ps_latnode_t
type: struct ps_latnode_s
briefdescription: DAG nodes.
detaileddescription:
A node corresponds to a number of hypothesized instances of a word
which all share the same starting point.


refid: a26f4a34c81b112109621b7ecacd57ee0
name: ps_lattice_read
definition: POCKETSPHINX_EXPORT ps_lattice_t* ps_lattice_read
type: POCKETSPHINX_EXPORT ps_lattice_t *
argsstring: (struct ps_decoder_s *ps, char const *file)
briefdescription: Read a lattice from a file on disk.
detaileddescription:
@param ps Decoder to use for processing this lattice, or NULL.
@param file Path to lattice file.
@return Newly created lattice, or NULL for failure.


refid: a9efc5f2836e2a0bd5d58326303516df5
name: ps_lattice_retain
definition: POCKETSPHINX_EXPORT ps_lattice_t* ps_lattice_retain
type: POCKETSPHINX_EXPORT ps_lattice_t *
argsstring: (ps_lattice_t *dag)
briefdescription: Retain a lattice.
detaileddescription:
This function retains ownership of a lattice for the caller,
preventing it from being freed automatically.  You must call
ps_lattice_free() to free it after having called this function.

@return pointer to the retained lattice.


refid: a5c9d9171c9846c46c107bfe41a9120cf
name: ps_lattice_get_logmath
definition: POCKETSPHINX_EXPORT logmath_t* ps_lattice_get_logmath
type: POCKETSPHINX_EXPORT logmath_t *
argsstring: (ps_lattice_t *dag)
briefdescription: Get the log-math computation object for this lattice.
detaileddescription:
@return The log-math object for this lattice.  The lattice retains
        ownership of this pointer, so you should not attempt to
        free it manually.  Use logmath_retain() if you wish to
        reuse it elsewhere.


refid: aaf073a0617c446aa5424513f7c1045b8
name: ps_latnode_iter
definition: POCKETSPHINX_EXPORT ps_latnode_iter_t* ps_latnode_iter
type: POCKETSPHINX_EXPORT ps_latnode_iter_t *
argsstring: (ps_lattice_t *dag)
briefdescription: Start iterating over nodes in the lattice.
detaileddescription:
@note No particular order of traversal is guaranteed, and you
should not depend on this.

@param dag Lattice to iterate over.
@return Iterator over lattice nodes.


refid: a42bd0fbfe8b0cab1a9a7e799a3fc30a2
name: ps_latnode_times
definition: POCKETSPHINX_EXPORT int ps_latnode_times
type: POCKETSPHINX_EXPORT int
argsstring: (ps_latnode_t *node, int16 *out_fef, int16 *out_lef)
briefdescription: Get start and end time range for a node.
detaileddescription:
@param node Node inquired about.
@param out_fef Output: End frame of first exit from this node.
@param out_lef Output: End frame of last exit from this node.
@return Start frame for all edges exiting this node.


refid: a54888a8a7379c5c63613504b9a847ea3
name: ps_latnode_word
definition: POCKETSPHINX_EXPORT char const* ps_latnode_word
type: POCKETSPHINX_EXPORT char const *
argsstring: (ps_lattice_t *dag, ps_latnode_t *node)
briefdescription: Get word string for this node.
detaileddescription:
@param dag Lattice to which node belongs.
@param node Node inquired about.
@return Word string for this node (possibly a pronunciation variant).


refid: a0b3b6a843b49deab080bf1c6e99c875d
name: ps_latnode_baseword
definition: POCKETSPHINX_EXPORT char const* ps_latnode_baseword
type: POCKETSPHINX_EXPORT char const *
argsstring: (ps_lattice_t *dag, ps_latnode_t *node)
briefdescription: Get base word string for this node.
detaileddescription:
@param dag Lattice to which node belongs.
@param node Node inquired about.
@return Base word string for this node.


refid: a68253946c2405d7f9090de7530f33b9d
name: ps_latnode_prob
definition: POCKETSPHINX_EXPORT int32 ps_latnode_prob
type: POCKETSPHINX_EXPORT int32
argsstring: (ps_lattice_t *dag, ps_latnode_t *node, ps_latlink_t **out_link)
briefdescription: Get best posterior probability and associated acoustic score from a lattice node.
detaileddescription:
@param dag Lattice to which node belongs.
@param node Node inquired about.
@param out_link Output: exit link with highest posterior probability
@return Posterior probability of the best link exiting this node.
        Log is expressed in the log-base used in the decoder.  To
        convert to linear floating-point, use
        logmath_exp(ps_lattice_get_logmath(), pprob).


refid: aef48bb18865b449e69316ed5959eae9f
name: ps_latlink_times
definition: POCKETSPHINX_EXPORT int ps_latlink_times
type: POCKETSPHINX_EXPORT int
argsstring: (ps_latlink_t *link, int16 *out_sf)
briefdescription: Get start and end times from a lattice link.
detaileddescription:
@note these are <strong>inclusive</strong> - i.e. the last frame of
this word is ef, not ef-1.

@param link Link inquired about.
@param out_sf Output: (optional) start frame of this link.
@return End frame of this link.


refid: a7344aa4fdb94a3a0af47901cb77185ed
name: ps_latlink_nodes
definition: POCKETSPHINX_EXPORT ps_latnode_t* ps_latlink_nodes
type: POCKETSPHINX_EXPORT ps_latnode_t *
argsstring: (ps_latlink_t *link, ps_latnode_t **out_src)
briefdescription: Get destination and source nodes from a lattice link.
detaileddescription:
@param link Link inquired about
@param out_src Output: (optional) source node.
@return destination node


refid: a04c080f501883fe5d4c5500afb28e53a
name: ps_latlink_word
definition: POCKETSPHINX_EXPORT char const* ps_latlink_word
type: POCKETSPHINX_EXPORT char const *
argsstring: (ps_lattice_t *dag, ps_latlink_t *link)
briefdescription: Get word string from a lattice link.
detaileddescription:
@param dag Lattice to which node belongs.
@param link Link inquired about
@return Word string for this link (possibly a pronunciation variant).


refid: a392d98f9dc8fdae7f1092dced0738a43
name: ps_latlink_baseword
definition: POCKETSPHINX_EXPORT char const* ps_latlink_baseword
type: POCKETSPHINX_EXPORT char const *
argsstring: (ps_lattice_t *dag, ps_latlink_t *link)
briefdescription: Get base word string from a lattice link.
detaileddescription:
@param dag Lattice to which node belongs.
@param link Link inquired about
@return Base word string for this link


refid: a8f37d188bd1dff70293adebdb2453ab4
name: ps_latlink_pred
definition: POCKETSPHINX_EXPORT ps_latlink_t* ps_latlink_pred
type: POCKETSPHINX_EXPORT ps_latlink_t *
argsstring: (ps_latlink_t *link)
briefdescription: Get predecessor link in best path.
detaileddescription:
@param link Link inquired about
@return Best previous link from bestpath search, if any.  Otherwise NULL


refid: aa393fbcf215acc8116e18aac2847cc59
name: ps_latlink_prob
definition: POCKETSPHINX_EXPORT int32 ps_latlink_prob
type: POCKETSPHINX_EXPORT int32
argsstring: (ps_lattice_t *dag, ps_latlink_t *link, int32 *out_ascr)
briefdescription: Get acoustic score and posterior probability from a lattice link.
detaileddescription:
@param dag Lattice to which node belongs.
@param link Link inquired about
@param out_ascr Output: (optional) acoustic score.
@return Posterior probability for this link.  Log is expressed in
        the log-base used in the decoder.  To convert to linear
        floating-point, use logmath_exp(ps_lattice_get_logmath(), pprob).


refid: a4aaae70904361b23a78cdcb632c298c4
name: ps_lattice_link
definition: POCKETSPHINX_EXPORT void ps_lattice_link
type: POCKETSPHINX_EXPORT void
argsstring: (ps_lattice_t *dag, ps_latnode_t *from, ps_latnode_t *to, int32 score, int32 ef)
briefdescription:
Create a directed link between "from" and "to" nodes, but if a link already exists,
choose one with the best link_scr.


refid: a997fce2eb1eaf316d463ddfb3d8395b8
name: ps_lattice_traverse_edges
definition: POCKETSPHINX_EXPORT ps_latlink_t* ps_lattice_traverse_edges
type: POCKETSPHINX_EXPORT ps_latlink_t *
argsstring: (ps_lattice_t *dag, ps_latnode_t *start, ps_latnode_t *end)
briefdescription: Start a forward traversal of edges in a word graph.
detaileddescription:
@note A keen eye will notice an inconsistency in this API versus
other types of iterators in PocketSphinx.  The reason for this is
that the traversal algorithm is much more efficient when it is able
to modify the lattice structure.  Therefore, to avoid giving the
impression that multiple traversals are possible at once, no
separate iterator structure is provided.

@param dag Lattice to be traversed.
@param start Start node (source) of traversal.
@param end End node (goal) of traversal.
@return First link in traversal.


refid: a2682f3cbbb4e6aee040fbe570ca983a9
name: ps_lattice_traverse_next
definition: POCKETSPHINX_EXPORT ps_latlink_t* ps_lattice_traverse_next
type: POCKETSPHINX_EXPORT ps_latlink_t *
argsstring: (ps_lattice_t *dag, ps_latnode_t *end)
briefdescription: Get the next link in forward traversal.
detaileddescription:
@param dag Lattice to be traversed.
@param end End node (goal) of traversal.
@return Next link in traversal.


refid: ad712e99a75ab8e9eb2f636aac8d5e2cb
name: ps_lattice_reverse_edges
definition: POCKETSPHINX_EXPORT ps_latlink_t* ps_lattice_reverse_edges
type: POCKETSPHINX_EXPORT ps_latlink_t *
argsstring: (ps_lattice_t *dag, ps_latnode_t *start, ps_latnode_t *end)
briefdescription: Start a reverse traversal of edges in a word graph.
detaileddescription:
@note See ps_lattice_traverse_edges() for why this API is the way it is.

@param dag Lattice to be traversed.
@param start Start node (goal) of traversal.
@param end End node (source) of traversal.
@return First link in traversal.


refid: ae94a8b82335f782370faa66bb4801c72
name: ps_lattice_reverse_next
definition: POCKETSPHINX_EXPORT ps_latlink_t* ps_lattice_reverse_next
type: POCKETSPHINX_EXPORT ps_latlink_t *
argsstring: (ps_lattice_t *dag, ps_latnode_t *start)
briefdescription: Get the next link in reverse traversal.
detaileddescription:
@param dag Lattice to be traversed.
@param start Start node (goal) of traversal.
@return Next link in traversal.


refid: af19b8f0749af01d4874595e80fc612ba
name: ps_lattice_bestpath
definition: POCKETSPHINX_EXPORT ps_latlink_t* ps_lattice_bestpath
type: POCKETSPHINX_EXPORT ps_latlink_t *
argsstring: (ps_lattice_t *dag, ngram_model_t *lmset, float32 lwf, float32 ascale)
briefdescription: Do N-Gram based best-path search on a word graph.
detaileddescription:
This function calculates both the best path as well as the forward
probability used in confidence estimation.

@return Final link in best path, NULL on error.


refid: a8c5c6ef260ab006099ab34d09b5b1d06
name: ps_lattice_posterior
definition: POCKETSPHINX_EXPORT int32 ps_lattice_posterior
type: POCKETSPHINX_EXPORT int32
argsstring: (ps_lattice_t *dag, ngram_model_t *lmset, float32 ascale)
briefdescription: Calculate link posterior probabilities on a word graph.
detaileddescription:
This function assumes that bestpath search has already been done.

@return Posterior probability of the utterance as a whole.


refid: a30d83a5fd158d2acaa5107be7a09ed09
name: ps_lattice_posterior_prune
definition: POCKETSPHINX_EXPORT int32 ps_lattice_posterior_prune
type: POCKETSPHINX_EXPORT int32
argsstring: (ps_lattice_t *dag, int32 beam)
briefdescription: Prune all links (and associated nodes) below a certain posterior probability.
detaileddescription:
This function assumes that ps_lattice_posterior() has already been called.

@param beam Minimum posterior probability for links. This is
        expressed in the log-base used in the decoder.  To convert
        from linear floating-point, use
        logmath_log(ps_lattice_get_logmath(), prob).
@return number of arcs removed.


refid: a8017e0daafc566656931e15bef02cdee
name: MPX_BITVEC_SET
initializer:
if (hmm_mpx_ssid(h,i) != BAD_SSID)                          \
        bitvec_set((a)->senone_active_vec, hmm_mpx_senid(h,i))


refid: aba1b554be23311cdd7f89ff2a209819b
name: NONMPX_BITVEC_SET
initializer:
bitvec_set((a)->senone_active_vec,                                  \
               hmm_nonmpx_senid(h,i))


refid: ad77bdbafbb56971896b56a5261f02ae8
name: feat_defn
definition: const arg_t feat_defn[]
type: const arg_t
argsstring: []
initializer:
= {
    waveform_to_cepstral_command_line_macro(),
    cepstral_to_feature_command_line_macro(),
    CMDLN_EMPTY_OPTION
}


refid: a6f32b623cbc3d15a1e3c5d09aba7dabf
name: acmod_init
definition: acmod_t* acmod_init
type: acmod_t *
argsstring: (cmd_ln_t *config, logmath_t *lmath, fe_t *fe, feat_t *fcb)
briefdescription: Initialize an acoustic model.
detaileddescription:
@param config a command-line object containing parameters.  This
              pointer is not retained by this object.
@param lmath global log-math parameters.
@param fe a previously-initialized acoustic feature module to use,
          or NULL to create one automatically.  If this is supplied
          and its parameters do not match those in the acoustic
          model, this function will fail.  This pointer is not retained.
@param fe a previously-initialized dynamic feature module to use,
          or NULL to create one automatically.  If this is supplied
          and its parameters do not match those in the acoustic
          model, this function will fail.  This pointer is not retained.
@return a newly initialized acmod_t, or NULL on failure.


refid: ab35cb48cdf326a3fb5223589d73ae0ce
name: acmod_set_senfh
definition: int acmod_set_senfh
type: int
argsstring: (acmod_t *acmod, FILE *logfh)
briefdescription: Start logging senone scores to a filehandle.
detaileddescription:
@param acmod Acoustic model object.
@param logfh Filehandle to log to.
@return 0 for success, <0 on error.


refid: a1555dac8fa27f644d709c5c89bbfa881
name: acmod_set_grow
definition: int acmod_set_grow
type: int
argsstring: (acmod_t *acmod, int grow_feat)
briefdescription: Set memory allocation policy for utterance processing.
detaileddescription:
@param grow_feat If non-zero, the internal dynamic feature buffer
will expand as necessary to encompass any amount of data fed to the
model.
@return previous allocation policy.


refid: a23e63c8833e6128ae248e183d42f9b2b
name: acmod_process_raw
definition: int acmod_process_raw
type: int
argsstring: (acmod_t *acmod, int16 const **inout_raw, size_t *inout_n_samps, int full_utt)
briefdescription: TODO: Set queue length for utterance processing.
detaileddescription:
This function allows multiple concurrent passes of search to
operate on different parts of the utterance.
Feed raw audio data to the acoustic model for scoring.

@param inout_raw In: Pointer to buffer of raw samples
                 Out: Pointer to next sample to be read
@param inout_n_samps In: Number of samples available
                     Out: Number of samples remaining
@param full_utt If non-zero, this block represents a full
                utterance and should be processed as such.
@return Number of frames of data processed.


refid: a9464f7708a361171469d613d401619fe
name: acmod_process_cep
definition: int acmod_process_cep
type: int
argsstring: (acmod_t *acmod, mfcc_t ***inout_cep, int *inout_n_frames, int full_utt)
briefdescription: Feed acoustic feature data into the acoustic model for scoring.
detaileddescription:
@param inout_cep In: Pointer to buffer of features
                 Out: Pointer to next frame to be read
@param inout_n_frames In: Number of frames available
                     Out: Number of frames remaining
@param full_utt If non-zero, this block represents a full
                utterance and should be processed as such.
@return Number of frames of data processed.


refid: ab16e414d5a07519d7b462c32377e8a47
name: acmod_process_feat
definition: int acmod_process_feat
type: int
argsstring: (acmod_t *acmod, mfcc_t **feat)
briefdescription: Feed dynamic feature data into the acoustic model for scoring.
detaileddescription:
Unlike acmod_process_raw() and acmod_process_cep(), this function
accepts a single frame at a time.  This is because there is no need
to do buffering when using dynamic features as input.  However, if
the dynamic feature buffer is full, this function will fail, so you
should either always check the return value, or always pair a call
to it with a call to acmod_score().

@param feat Pointer to one frame of dynamic features.
@return Number of frames processed (either 0 or 1).


refid: a7b5f0b6edac2985b9b56d630cd705b99
name: acmod_rewind
definition: int acmod_rewind
type: int
argsstring: (acmod_t *acmod)
briefdescription: Rewind the current utterance, allowing it to be rescored.
detaileddescription:
After calling this function, the internal frame index is reset, and
acmod_score() will return scores starting at the first frame of the
current utterance.  Currently, acmod_set_grow() must have been
called to enable growing the feature buffer in order for this to
work.  In the future, senone scores may be cached instead.

@return 0 for success, <0 for failure (if the utterance can't be
        rewound due to no feature or score data available)


refid: a338971ea0aa27fb4796d224e4767642b
name: acmod_advance
definition: int acmod_advance
type: int
argsstring: (acmod_t *acmod)
briefdescription: Advance the frame index.
detaileddescription:
This function moves to the next frame of input data.  Subsequent
calls to acmod_score() will return scores for that frame, until the
next call to acmod_advance().

@return New frame index.


refid: a91c63cce3b20f231aa483bf054eca3c6
name: acmod_get_frame
definition: mfcc_t** acmod_get_frame
type: mfcc_t **
argsstring: (acmod_t *acmod, int *inout_frame_idx)
briefdescription: Get a frame of dynamic feature data.
detaileddescription:
@param inout_frame_idx Input: frame index to get, or NULL
                       to obtain features for the most recent frame.
                       Output: frame index corresponding to this
                       set of features.
@return Feature array, or NULL if requested frame is not available.


refid: acd78e9bae06724df9c53f844d90c1c8a
name: acmod_score
definition: int16 const* acmod_score
type: int16 const *
argsstring: (acmod_t *acmod, int *inout_frame_idx)
briefdescription: Score one frame of data.
detaileddescription:
@param inout_frame_idx Input: frame index to score, or NULL
                       to obtain scores for the most recent frame.
                       Output: frame index corresponding to this
                       set of scores.
@return Array of senone scores for this frame, or NULL if no frame
        is available for scoring (such as if a frame index is
        requested that is not yet or no longer available).  The
        data pointed to persists only until the next call to
        acmod_score() or acmod_advance().


refid: a5a5fa4e65582dd7e2df449e4ae95fa96
name: ps_mgau_frame_eval
initializer:
(*ps_mgau_base(mg)->vt->frame_eval)                                 \
    (mg, senscr, senone_active, n_senone_active, feat, frame, compallsen)


refid: afc526d4b2879a3199afe8b50702dea51
name: FREAD_SWAP32_CHK
initializer:
if (fread((dest), 4, 1, fh) != 1) {                                 \
        fclose(fh);                                                     \
        ckd_free(m);                                                    \
        E_ERROR_SYSTEM("Failed to read %s from %s\n", #dest, filename); \
        return NULL;                                                    \
    }                                                                   \
    if (swap) SWAP_INT32(dest);


refid: a7aa718f01e92cc2801d26a2f2490053f
name: format_desc
definition: const char format_desc[]
type: const char
argsstring: []
initializer:
=
    "BEGIN FILE FORMAT DESCRIPTION\n"
    "int32 n_ciphone;    /**< Number of base (CI) phones */\n"
    "int32 n_phone;	     /**< Number of base (CI) phones + (CD) triphones */\n"
    "int32 n_emit_state; /**< Number of emitting states per phone (0 if heterogeneous) */\n"
    "int32 n_ci_sen;     /**< Number of CI senones; these are the first */\n"
    "int32 n_sen;	     /**< Number of senones (CI+CD) */\n"
    "int32 n_tmat;	     /**< Number of transition matrices */\n"
    "int32 n_sseq;       /**< Number of unique senone sequences */\n"
    "int32 n_ctx;	     /**< Number of phones of context */\n"
    "int32 n_cd_tree;    /**< Number of nodes in CD tree structure */\n"
    "int32 sil;	     /**< CI phone ID for silence */\n"
    "char ciphones[][];  /**< CI phone strings (null-terminated) */\n"
    "char padding[];     /**< Padding to a 4-bytes boundary */\n"
    "struct { int16 ctx; int16 n_down; int32 pid/down } cd_tree[];\n"
    "struct { int32 ssid; int32 tmat; int8 attr[4] } phones[];\n"
    "int16 sseq[];       /**< Unique senone sequences */\n"
    "int8 sseq_len[];    /**< Number of states in each sseq (none if homogeneous) */\n"
    "END FILE FORMAT DESCRIPTION\n"


refid: adaf0912c2d4c6039f8a47aef8c0cb281
name: bin_mdef_is_fillerphone
initializer:
(((p) < (m)->n_ciphone) \
		                         ? (m)->phone[p].info.ci.filler \
					 : (m)->phone[(m)->phone[p].info.cd.ctx[0]].info.ci.filler)


refid: ae7897f787dca12d85aeb6fe6ed8ade8d
name: bin_mdef_pid2ci
initializer:
(((p) < (m)->n_ciphone) ? (p) \
                                         : (m)->phone[p].info.cd.ctx[0])


refid: a05d8dac3e5fe5399ccb8bf7776e203e2
name: dict_init
definition: dict_t* dict_init
type: dict_t *
argsstring: (cmd_ln_t *config, bin_mdef_t *mdef)
briefdescription: Initialize a new dictionary.
detaileddescription:
If config and mdef are supplied, then the dictionary will be read
from the files specified by the -dict and -fdict options in config,
with case sensitivity determined by the -dictcase option.

Otherwise an empty case-sensitive dictionary will be created.

Return ptr to dict_t if successful, NULL otherwise.


refid: aa5cade4dc6464c620718b86344540aff
name: dict_filler_word
definition: int dict_filler_word
type: int
argsstring: (dict_t *d, s3wid_t w)
briefdescription: Return 1 if w is a filler word, 0 if not.
detaileddescription:
  A filler word is one that was read in from the
filler dictionary; however, sentence START and FINISH words are not filler words.


refid: a3a128531ae9c077be9882119ed05fe3a
name: dict_word2basestr
definition: int32 dict_word2basestr
type: int32
argsstring: (char *word)
detaileddescription:
  Note that the given
string is modified.
Return value: If string was modified, the character position at which the original string
was truncated; otherwise -1.

briefdescription:
If the given word contains a trailing "(....)" (i.e., a Sphinx-II style alternative
pronunciation specification), strip that trailing portion from it.


refid: aa77890032a2c171ed9944b1d81fd5cb0
name: get_rc_nssid
definition: int32 get_rc_nssid
type: int32
argsstring: (dict2pid_t *d2p, s3wid_t w)
briefdescription: ARCHAN, A duplicate of get_rc_npid in ctxt_table.h.
detaileddescription:
Get number of rc.

  I doubt whether it is correct
because the compressed map has not been checked. 


refid: a3a019a237761843c0badee4a151281da
name: fsg_history_entry_add
definition: void fsg_history_entry_add
type: void
argsstring:
(fsg_history_t *h, fsg_link_t *link, int32 frame, int32 score, int32 pred, int32 lc, fsg_pnode_ctxt_t rc)


refid: afc0a71b535de4db693dcbc681a7c12ed
name: fsg_history_entry_add
definition: void fsg_history_entry_add
type: void
argsstring:
(fsg_history_t *h, fsg_link_t *l, int32 frame, int32 score, int32 pred, int32 lc, fsg_pnode_ctxt_t rc)


refid: a36733ad378311eb94bbf6ed4062e1973
name: fsg_psubtree_init
definition: static fsg_pnode_t * fsg_psubtree_init
type: fsg_pnode_t *
argsstring: (fsg_lextree_t *tree, fsg_model_t *fsg, int32 from_state, fsg_pnode_t **alloc_head)
briefdescription: Build the phone lextree for all transitions out of state from_state.
detaileddescription:
Return the root node of this tree.
Also, return a linear linked list of all allocated fsg_pnode_t nodes in
*alloc_head (for memory management purposes).


refid: a8c47b2983b3952886a4c889a711e1d65
name: fsg_lextree_init
definition: fsg_lextree_t* fsg_lextree_init
type: fsg_lextree_t *
briefdescription: Create, initialize, and return a new phonetic lextree for the given FSG.
argsstring:
(fsg_model_t *fsg, dict_t *dict, dict2pid_t *d2p, bin_mdef_t *mdef, hmm_context_t *ctx, int32 wip, int32 pip)


refid: ad4865856f5f92ec64637776586c0d69c
name: psubtree_add_trans
definition: static fsg_pnode_t* psubtree_add_trans
type: fsg_pnode_t *
argsstring:
(fsg_lextree_t *lextree, fsg_pnode_t *root, fsg_glist_linklist_t **curglist, fsg_link_t *fsglink, int16 *lclist, int16 *rclist, fsg_pnode_t **alloc_head)


refid: a02d39dfa0478015f96b7cb13d54bd6c1
name: FSG_PNODE_CTXT_SUB
initializer:
(((src)->bv[0] = (~((sub)->bv[0]) & (src)->bv[0])) | \
     ((src)->bv[1] = (~((sub)->bv[1]) & (src)->bv[1])))


refid: a365d52ca8eccf30d33182bb24985fbc2
name: fsg_funcs
definition: ps_searchfuncs_t fsg_funcs
type: ps_searchfuncs_t
initializer:
= {
       "fsg",
      fsg_search_start,
       fsg_search_step,
     fsg_search_finish,
     fsg_search_reinit,
       fsg_search_free,
      fsg_search_lattice,
          fsg_search_hyp,
         fsg_search_prob,
     fsg_search_seg_iter,
}


refid: a62d3eeb2f31180ea476439a844688f7f
name: fsg_search_lattice
definition: static ps_lattice_t * fsg_search_lattice
type: ps_lattice_t *
argsstring: (ps_search_t *search)
briefdescription: Generate a lattice from FSG search results.
detaileddescription:
One might think that this is simply a matter of adding acoustic
scores to the FSG's edges.  However, one would be wrong.  The
crucial difference here is that the word lattice is acyclic, and it
also contains timing information.


refid: ab66534ad7970d49527f1b2a1e76bb05e
name: hmm_context_free
definition: void hmm_context_free
type: void
argsstring: (hmm_context_t *ctx)
briefdescription: Free an HMM context.
detaileddescription:
@note The transition matrices, senone scores, and senone sequence
mapping are all assumed to be allocated externally, and will NOT be
freed by this function.


refid: a24ed030b10cb07e12173b45d3800db4b
name: hmm_vit_eval
definition: int32 hmm_vit_eval
type: int32
argsstring: (hmm_t *hmm)
briefdescription: Viterbi evaluation of given HMM.
detaileddescription:
@note If this module were being used for tracking state
segmentations, the dummy, non-emitting exit state would have to be
updated separately.  In the Viterbi DP diagram, transitions to the
exit state occur from the current time; they are vertical
transitions.  Hence they should be made only after the history has
been logged for the emitting states.  But we're not bothered with
state segmentations, for now.  So, we update the exit state as
well.


refid: a833f100ee293ad0f1c03f2a5ef9be77a
name: WORST_SCORE
initializer: ((int)0xE0000000)
briefdescription: Large "bad" score.
detaileddescription:
This number must be "bad" enough so that 4 times WORST_SCORE will
not overflow. The reason for this is that the search doesn't check
the scores in a model before evaluating the model and it may
require as many was 4 plies before the new 'good' score can wipe
out the initial WORST_SCORE initialization.


refid: a9b38399b544dbb93bc9b7d0094e91db7
name: TMAT_WORST_SCORE
initializer: (-255)
briefdescription:
Watch out, though!  Transition matrix entries that are supposed to
be "zero" don't actually get that small due to quantization.


refid: a373c24cfb5d5e2d732b0b88f716c0d55
name: hmm_ssid
initializer:
(hmm_is_mpx(h)                                   \
                        ? hmm_mpx_ssid(h,st) : hmm_nonmpx_ssid(h))


refid: a90d5493e8a3ef5826a1158e02e3b055c
name: hmm_mpx_senid
initializer:
(hmm_mpx_ssid(h,st) == BAD_SENID \
                             ? BAD_SENID : (h)->ctx->sseq[hmm_mpx_ssid(h,st)][st])


refid: ae3f2856c4774fe4ba0217bdf97410264
name: hmm_senid
initializer:
(hmm_is_mpx(h)                                  \
                         ? hmm_mpx_senid(h,st) : hmm_nonmpx_senid(h,st))


refid: a0c8de8756d4263b2a36957cb42075740
name: hmm_senscr
initializer:
(hmm_senid(h,st) == BAD_SENID                  \
                          ? WORST_SCORE                                 \
                          : -(h)->ctx->senscore[hmm_senid(h,st)])


refid: a95afbcf23bff46debfe50cd7190e5bb8
name: frame_idx_t
definition: typedef int16 frame_idx_t
type: int16
briefdescription: Type for frame index values.
detaileddescription:
 Used in HMM indexes and 
backpointers and affects memory required. Make it int32 to be able to 
process longer utterances. Due to limitations of FSG search implementation
this value needs to be signed.


refid: a49424df076ebbabc5c8e34bd9db54616
name: mdef_hmm_cmp
definition: int mdef_hmm_cmp
type: int
argsstring: (mdef_t *m, int p1, int p2)
detaileddescription: @return 0 iff the HMMs are identical, -1 otherwise.
briefdescription:
Compare the underlying HMMs for two given phones (i.e., compare the two transition
matrix IDs and the individual state(senone) IDs).


refid: af960925a8a2b4d6c908231f3d57a391f
name: gauden_param_read
definition: static int32 gauden_param_read
type: int32
argsstring:
(float32 *****out_param, int32 *out_n_mgau, int32 *out_n_feat, int32 *out_n_density, int32 **out_veclen, const char *file_name)


refid: ae4587b0aeb39fd926622a422969ecebc
name: gauden_init
definition: gauden_t* gauden_init
type: gauden_t *
argsstring: (char const *meanfile, char const *varfile, float32 varfloor, logmath_t *lmath)
briefdescription: Read mixture gaussian codebooks from the given files.
detaileddescription:
  Allocate memory space needed
for them.  Apply the specified variance floor value.
Return value: ptr to the model created; NULL if error.
(See Sphinx3 model file-format documentation.)


refid: abac80e5b56997a124319d55e51d9ef52
name: compute_dist_all
definition: static int32 compute_dist_all
type: int32
argsstring:
(gauden_dist_t *out_dist, mfcc_t *obs, int32 featlen, mfcc_t **mean, mfcc_t **var, mfcc_t *det, int32 n_density)


refid: a87bcfd1a65e24fab4093e07fe4df5d97
name: compute_dist
definition: static int32 compute_dist
type: int32
argsstring:
(gauden_dist_t *out_dist, int32 n_top, mfcc_t *obs, int32 featlen, mfcc_t **mean, mfcc_t **var, mfcc_t *det, int32 n_density)


refid: a68cd25af0a2faf05eacd17afd5407ea4
name: gauden_dist
definition: int32 gauden_dist
type: int32
argsstring: (gauden_t *g, int mgau, int n_top, mfcc_t **obs, gauden_dist_t **out_dist)
detaileddescription: Density values are left UNnormalized. @return 0 if successful, -1 otherwise.
briefdescription:
Compute gaussian density values for the given input observation vector wrt the
specified mixture gaussian codebook (which may consist of several feature streams).


refid: af9b091af093312c79d1985c5a4541bbd
name: ms_mgau_funcs
definition: ps_mgaufuncs_t ms_mgau_funcs
type: ps_mgaufuncs_t
initializer:
= {
    "ms",
    ms_cont_mgau_frame_eval, 
    ms_mgau_mllr_transform,  
    ms_mgau_free             
}


refid: a596fe4fbe3f6ebf652f19017a7ce4e61
name: ms_cont_mgau_frame_eval
definition: int32 ms_cont_mgau_frame_eval
type: int32
argsstring:
(ps_mgau_t *mg, int16 *senscr, uint8 *senone_active, int32 n_senone_active, mfcc_t **feat, int32 frame, int32 compallsen)


refid: ab1f5637b68fdc1a4d24e4d6275353216
name: ms_cont_mgau_frame_eval
definition: int32 ms_cont_mgau_frame_eval
type: int32
argsstring:
(ps_mgau_t *msg, int16 *senscr, uint8 *senone_active, int32 n_senone_active, mfcc_t **feat, int32 frame, int32 compallsen)


refid: a7be70fe3408d6c7e4fb71c9af6ce8b33
name: senone_init
definition: senone_t* senone_init
type: senone_t *
briefdescription: Load a set of senones (mixing weights and mixture gaussian codebook mappings) from the given files.
argsstring:
(gauden_t *g, char const *mixwfile, char const *sen2mgau_map_file, float32 mixwfloor, logmath_t *lmath, bin_mdef_t *mdef)

detaileddescription:
  Normalize weights for each codebook, apply the given floor, convert
PDF values to logs3 domain and quantize to 8-bits.
@return pointer to senone structure created.  Caller MUST NOT change its contents.


refid: a757e0e72a8e5db3c69611f83143b8887
name: senone_init
definition: senone_t* senone_init
type: senone_t *
briefdescription: Load a set of senones (mixing weights and mixture gaussian codebook mappings) from the given files.
argsstring:
(gauden_t *g, char const *mixwfile, char const *mgau_mapfile, float32 mixwfloor, logmath_t *lmath, bin_mdef_t *mdef)

detaileddescription:
  Normalize weights for each codebook, apply the given floor, convert
PDF values to logs3 domain and quantize to 8-bits.
@return pointer to senone structure created.  Caller MUST NOT change its contents.


refid: a20b05818cd0bbbdb96b0898dedbba77f
name: ngram_funcs
definition: ps_searchfuncs_t ngram_funcs
type: ps_searchfuncs_t
initializer:
= {
       "ngram",
      ngram_search_start,
       ngram_search_step,
     ngram_search_finish,
     ngram_search_reinit,
       ngram_search_free,
      ngram_search_lattice,
          ngram_search_hyp,
         ngram_search_prob,
     ngram_search_seg_iter,
}


refid: a2c5740fe4792d870b73f4100b32e9324
name: chan_t
definition: typedef struct chan_s chan_t
type: struct chan_s
briefdescription: Lexical tree node data type.
detaileddescription:
Not the first HMM for words, which multiplex HMMs based on
different left contexts.  This structure is used both in the
dynamic HMM tree structure and in the per-word last-phone right
context fanout.


refid: ad251eb3a85171f27156b4038a10f0cb0
name: phone_loop_search_funcs
definition: ps_searchfuncs_t phone_loop_search_funcs
type: ps_searchfuncs_t
initializer:
= {
       "phone_loop",
      phone_loop_search_start,
       phone_loop_search_step,
     phone_loop_search_finish,
     phone_loop_search_reinit,
       phone_loop_search_free,
      NULL,
          phone_loop_search_hyp,
         phone_loop_search_prob,
     phone_loop_search_seg_iter,
}


refid: ab49609ce2ff4d1827f57693f463e360b
name: phone_loop_search_score
briefdescription: Return lookahead heuristic score for a specific phone.
initializer:
((pls == NULL) ? 0                                          \
     : (hmm_bestscore(&pls->phones[ci].hmm) - (pls)->best_score))


refid: ad848d8d0cf0398542bfb74a2e34dbff3
name: ps_search_init
definition: void ps_search_init
type: void
briefdescription: Initialize base structure.
argsstring:
(ps_search_t *search, ps_searchfuncs_t *vt, cmd_ln_t *config, acmod_t *acmod, dict_t *dict, dict2pid_t *d2p)


refid: aaf9aedd3cd8bd1d45053e10828215a25
name: ps_astar_start
definition: ps_astar_t* ps_astar_start
type: ps_astar_t *
argsstring: (ps_lattice_t *dag, ngram_model_t *lmset, float32 lwf, int sf, int ef, int w1, int w2)
briefdescription: Begin N-Gram based A* search on a word graph.
detaileddescription:
@param sf Starting frame for N-best search.
@param ef Ending frame for N-best search, or -1 for last frame.
@param w1 First context word, or -1 for none.
@param w2 Second context word, or -1 for none.
@return 0 for success, <0 on error.


refid: a32dd9511afc2f024dc63c9c060261e94
name: latlink_list_t
definition: typedef struct latlink_list_s latlink_list_t
type: struct latlink_list_s
briefdescription: Linked list of DAG link pointers.
detaileddescription:
Because the same link structure is used for forward and reverse
links, as well as for the agenda used in bestpath search, we can't
store the list pointer inside latlink_t.  We could use glist_t
here, but it wastes 4 bytes per entry on 32-bit machines.


refid: aba5a485290f665fb2e7e514a32ba3073
name: ps_latpath_t
definition: typedef struct ps_latpath_s ps_latpath_t
type: struct ps_latpath_s
briefdescription: Partial path structure used in N-best (A*) search.
detaileddescription:
Each partial path (latpath_t) is constructed by extending another
partial path&ndash;parent&ndash;by one node.


refid: a93fe0fa2630a33eaf9cfe3d5d6e6f465
name: COMPUTE_GMM_MAP
initializer:
diff[_idx] = obs[_idx] - mean[_idx];                \
    sqdiff[_idx] = MFCCMUL(diff[_idx], diff[_idx]);     \
    compl[_idx] = MFCCMUL(sqdiff[_idx], var[_idx]);


refid: ab16b339c70d2dfb22e0fcc8245c7bd7b
name: ptm_mgau_funcs
definition: ps_mgaufuncs_t ptm_mgau_funcs
type: ps_mgaufuncs_t
initializer:
= {
    "ptm",
    ptm_mgau_frame_eval,      
    ptm_mgau_mllr_transform,  
    ptm_mgau_free             
}


refid: a98876ffd44188bc448f9f64b25b3ace0
name: ptm_mgau_frame_eval
definition: int32 ptm_mgau_frame_eval
type: int32
briefdescription: Compute senone scores for the active senones.
argsstring:
(ps_mgau_t *ps, int16 *senone_scores, uint8 *senone_active, int32 n_senone_active, mfcc_t **featbuf, int32 frame, int32 compallsen)


refid: ae9fb76ef388e6541bd6c1b20fe8bc094
name: ptm_mgau_frame_eval
definition: int ptm_mgau_frame_eval
type: int
briefdescription: Compute senone scores for the active senones.
argsstring:
(ps_mgau_t *s, int16 *senone_scores, uint8 *senone_active, int32 n_senone_active, mfcc_t **featbuf, int32 frame, int32 compallsen)


refid: a50837a85bfa790377dbbfbf4bee2c7f9
name: s2_semi_mgau_funcs
definition: ps_mgaufuncs_t s2_semi_mgau_funcs
type: ps_mgaufuncs_t
initializer:
= {
    "s2_semi",
    s2_semi_mgau_frame_eval,      
    s2_semi_mgau_mllr_transform,  
    s2_semi_mgau_free             
}


refid: ab48bb368e6b77f4b87d7f058d88027a0
name: get_scores_8b_feat_any
definition: static int32 get_scores_8b_feat_any
type: int32
argsstring:
(s2_semi_mgau_t *s, int i, int topn, int16 *senone_scores, uint8 *senone_active, int32 n_senone_active)


refid: ae5f70241ce62a79747f0611029a6409d
name: s3cipid_t
definition: typedef int16 s3cipid_t
type: int16
briefdescription: Size definitions for more semantially meaningful units.
detaileddescription:
Illegal value definitions, limits, and tests for specific types.
NOTE: Types will be either int32 or smaller; only smaller ones may be unsigned (i.e.,
no type will be uint32).


refid: ad5940bf2a05648db60805269a048dec5
name: state_align_search_funcs
definition: ps_searchfuncs_t state_align_search_funcs
type: ps_searchfuncs_t
initializer:
= {
       "state_align",
      state_align_search_start,
       state_align_search_step,
     state_align_search_finish,
     state_align_search_reinit,
       state_align_search_free,
      NULL,
          NULL,
         NULL,
     NULL,
}


refid: a947ea19b4351ecbf70330e089994c3a1
name: fast_logmath_add
definition: LOGMATH_INLINE int fast_logmath_add
type: LOGMATH_INLINE int
argsstring: (logmath_t *lmath, int mlx, int mly)
briefdescription: Quickly log-add two negated log probabilities.
detaileddescription:
@param lmath The log-math object
@param mlx A negative log probability (0 < mlx < 255)
@param mly A negative log probability (0 < mly < 255)
@return -log(exp(-mlx)+exp(-mly))

We can do some extra-fast log addition since we know that
mixw+ascr is always less than 256 and hence x-y is also always less
than 256.  This relies on some cooperation from logmath_t which
will never produce a logmath table smaller than 256 entries.

Note that the parameters are <em>negated</em> log probabilities (and
hence, are positive numbers), as is the return value.  This is the
key to the "fastness" of this function.


