Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > e9280da098bff237733732ce38a34d57 > files > 15

pocketsphinx-devel-0.7-1.fc14.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>PocketSphinx: src/libpocketsphinx/acmod.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">PocketSphinx&#160;<span id="projectnumber">0.6</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('acmod_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Defines</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<h1>src/libpocketsphinx/acmod.h File Reference</h1>  </div>
</div>
<div class="contents">

<p>Acoustic model structures for PocketSphinx.  
<a href="#_details">More...</a></p>
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;sphinxbase/cmd_ln.h&gt;</code><br/>
<code>#include &lt;sphinxbase/logmath.h&gt;</code><br/>
<code>#include &lt;sphinxbase/fe.h&gt;</code><br/>
<code>#include &lt;sphinxbase/feat.h&gt;</code><br/>
<code>#include &lt;sphinxbase/bitvec.h&gt;</code><br/>
<code>#include &lt;sphinxbase/err.h&gt;</code><br/>
<code>#include &quot;ps_mllr.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="bin__mdef_8h_source.html">bin_mdef.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="tmat_8h_source.html">tmat.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="hmm_8h_source.html">hmm.h</a>&quot;</code><br/>
</div>
<p><a href="acmod_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structps__mllr__s.html">ps_mllr_s</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Feature space linear transform structure.  <a href="structps__mllr__s.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structps__mgaufuncs__s.html">ps_mgaufuncs_s</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structps__mgau__s.html">ps_mgau_s</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structacmod__s.html">acmod_s</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Acoustic model structure.  <a href="structacmod__s.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ace94548e8c9429394d130e2f9921d59b"></a><!-- doxytag: member="acmod.h::SENSCR_DUMMY" ref="ace94548e8c9429394d130e2f9921d59b" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#ace94548e8c9429394d130e2f9921d59b">SENSCR_DUMMY</a>&#160;&#160;&#160;0x7fff</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Dummy senone score value for unintentionally active states. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac78d63f7668ff617508b9bd2681b0fe1"></a><!-- doxytag: member="acmod.h::ps_mgau_base" ref="ac78d63f7668ff617508b9bd2681b0fe1" args="(mg)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ps_mgau_base</b>(mg)&#160;&#160;&#160;((<a class="el" href="structps__mgau__s.html">ps_mgau_t</a> *)(mg))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>ps_mgau_frame_eval</b>(mg, senscr, senone_active, n_senone_active, feat, frame, compallsen)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a66f28d9a80fc5edbaa5606ef0f80db21"></a><!-- doxytag: member="acmod.h::ps_mgau_transform" ref="a66f28d9a80fc5edbaa5606ef0f80db21" args="(mg, mllr)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ps_mgau_transform</b>(mg, mllr)&#160;&#160;&#160;(*ps_mgau_base(mg)-&gt;vt-&gt;transform)(mg, mllr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab881e220edd9749efd928b4f3c439a1e"></a><!-- doxytag: member="acmod.h::ps_mgau_free" ref="ab881e220edd9749efd928b4f3c439a1e" args="(mg)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ps_mgau_free</b>(mg)&#160;&#160;&#160;(*ps_mgau_base(mg)-&gt;vt-&gt;free)(mg)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ad4e2308e0e87230833466844bbccbc"></a><!-- doxytag: member="acmod.h::acmod_activate_sen" ref="a2ad4e2308e0e87230833466844bbccbc" args="(acmod, sen)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a2ad4e2308e0e87230833466844bbccbc">acmod_activate_sen</a>(acmod, sen)&#160;&#160;&#160;bitvec_set((acmod)-&gt;senone_active_vec, sen)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Activate a single senone. <br/></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a702be741f97505cdddf04a4448ab1ac1"></a><!-- doxytag: member="acmod.h::acmod_state_t" ref="a702be741f97505cdddf04a4448ab1ac1" args="" -->
typedef enum <a class="el" href="acmod_8h.html#a6a74b084234e0e7d5e72161545c5040b">acmod_state_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a702be741f97505cdddf04a4448ab1ac1">acmod_state_t</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">States in utterance processing. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab7a75abad7044b2ab494823d2ae8bbd4"></a><!-- doxytag: member="acmod.h::ps_mgau_t" ref="ab7a75abad7044b2ab494823d2ae8bbd4" args="" -->
typedef struct <a class="el" href="structps__mgau__s.html">ps_mgau_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#ab7a75abad7044b2ab494823d2ae8bbd4">ps_mgau_t</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Acoustic model parameter structure. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4bb73af014a17588de57cc714f2b9320"></a><!-- doxytag: member="acmod.h::ps_mgaufuncs_t" ref="a4bb73af014a17588de57cc714f2b9320" args="" -->
typedef struct <a class="el" href="structps__mgaufuncs__s.html">ps_mgaufuncs_s</a>&#160;</td><td class="memItemRight" valign="bottom"><b>ps_mgaufuncs_t</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a642749dc4df0179c262a46867b80f1f9"></a><!-- doxytag: member="acmod.h::acmod_t" ref="a642749dc4df0179c262a46867b80f1f9" args="" -->
typedef struct <a class="el" href="structacmod__s.html">acmod_s</a>&#160;</td><td class="memItemRight" valign="bottom"><b>acmod_t</b></td></tr>
<tr><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a6a74b084234e0e7d5e72161545c5040b">acmod_state_e</a> { <a class="el" href="acmod_8h.html#a6a74b084234e0e7d5e72161545c5040ba09f7964816ae844c445acd4cf3e33253">ACMOD_IDLE</a>, 
<a class="el" href="acmod_8h.html#a6a74b084234e0e7d5e72161545c5040ba71f39dbe81403dbb045f4312d1bbaae3">ACMOD_STARTED</a>, 
<a class="el" href="acmod_8h.html#a6a74b084234e0e7d5e72161545c5040ba1ed8df720ee7006ebaada8c75371d94c">ACMOD_PROCESSING</a>, 
<a class="el" href="acmod_8h.html#a6a74b084234e0e7d5e72161545c5040ba3d936d27ce644db26a862830f3b6d188">ACMOD_ENDED</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>States in utterance processing. </p>
 <a href="acmod_8h.html#a6a74b084234e0e7d5e72161545c5040b">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a6f32b623cbc3d15a1e3c5d09aba7dabf">acmod_init</a> (cmd_ln_t *config, logmath_t *lmath, fe_t *fe, feat_t *fcb)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize an acoustic model.  <a href="#a6f32b623cbc3d15a1e3c5d09aba7dabf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structps__mllr__s.html">ps_mllr_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a4205b92d38db562577eafc3c432593ab">acmod_update_mllr</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, <a class="el" href="structps__mllr__s.html">ps_mllr_t</a> *mllr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adapt acoustic model using a linear transform.  <a href="#a4205b92d38db562577eafc3c432593ab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a8e7bd5781f5232395f29fd0cd7f56004">acmod_set_senfh</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, FILE *senfh)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Start logging senone scores to a filehandle.  <a href="#a8e7bd5781f5232395f29fd0cd7f56004"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a5753caa516c75bdc74b385d7aa66a97c">acmod_set_mfcfh</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, FILE *logfh)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Start logging MFCCs to a filehandle.  <a href="#a5753caa516c75bdc74b385d7aa66a97c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a6979441ae866ea846ef41f8471b105a0">acmod_set_rawfh</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, FILE *logfh)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Start logging raw audio to a filehandle.  <a href="#a6979441ae866ea846ef41f8471b105a0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e3345e8ef8b060fc04e88f86e6afa4a"></a><!-- doxytag: member="acmod.h::acmod_free" ref="a1e3345e8ef8b060fc04e88f86e6afa4a" args="(acmod_t *acmod)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a1e3345e8ef8b060fc04e88f86e6afa4a">acmod_free</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Finalize an acoustic model. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3a5a89f76338e3e1bcfa7a2cecc5845"></a><!-- doxytag: member="acmod.h::acmod_start_utt" ref="aa3a5a89f76338e3e1bcfa7a2cecc5845" args="(acmod_t *acmod)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#aa3a5a89f76338e3e1bcfa7a2cecc5845">acmod_start_utt</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Mark the start of an utterance. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a262372bdd6063f61e64b5417a449c1a9"></a><!-- doxytag: member="acmod.h::acmod_end_utt" ref="a262372bdd6063f61e64b5417a449c1a9" args="(acmod_t *acmod)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a262372bdd6063f61e64b5417a449c1a9">acmod_end_utt</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Mark the end of an utterance. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a7b5f0b6edac2985b9b56d630cd705b99">acmod_rewind</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Rewind the current utterance, allowing it to be rescored.  <a href="#a7b5f0b6edac2985b9b56d630cd705b99"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a338971ea0aa27fb4796d224e4767642b">acmod_advance</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Advance the frame index.  <a href="#a338971ea0aa27fb4796d224e4767642b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a1555dac8fa27f644d709c5c89bbfa881">acmod_set_grow</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, int grow_feat)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set memory allocation policy for utterance processing.  <a href="#a1555dac8fa27f644d709c5c89bbfa881"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a23e63c8833e6128ae248e183d42f9b2b">acmod_process_raw</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, int16 const **inout_raw, size_t *inout_n_samps, int full_utt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">TODO: Set queue length for utterance processing.  <a href="#a23e63c8833e6128ae248e183d42f9b2b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a9464f7708a361171469d613d401619fe">acmod_process_cep</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, mfcc_t ***inout_cep, int *inout_n_frames, int full_utt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Feed acoustic feature data into the acoustic model for scoring.  <a href="#a9464f7708a361171469d613d401619fe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#ab16e414d5a07519d7b462c32377e8a47">acmod_process_feat</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, mfcc_t **feat)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Feed dynamic feature data into the acoustic model for scoring.  <a href="#ab16e414d5a07519d7b462c32377e8a47"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#ad8da89ae642a4a9a5e57390e9ce387c5">acmod_set_insenfh</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, FILE *insenfh)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set up a senone score dump file for input.  <a href="#ad8da89ae642a4a9a5e57390e9ce387c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a5c193164be78ad42944b7fb1be6299a2">acmod_read_scores</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read one frame of scores from senone score dump file.  <a href="#a5c193164be78ad42944b7fb1be6299a2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">mfcc_t **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a91c63cce3b20f231aa483bf054eca3c6">acmod_get_frame</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, int *inout_frame_idx)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a frame of dynamic feature data.  <a href="#a91c63cce3b20f231aa483bf054eca3c6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int16 const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#acd78e9bae06724df9c53f844d90c1c8a">acmod_score</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, int *inout_frame_idx)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Score one frame of data.  <a href="#acd78e9bae06724df9c53f844d90c1c8a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac561943e80e1478d7153d3c6320d57d9"></a><!-- doxytag: member="acmod.h::acmod_write_senfh_header" ref="ac561943e80e1478d7153d3c6320d57d9" args="(acmod_t *acmod, FILE *logfh)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#ac561943e80e1478d7153d3c6320d57d9">acmod_write_senfh_header</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, FILE *logfh)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Write senone dump file header. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a66d1f73cd1d975ec0da9de00b80b36e2"></a><!-- doxytag: member="acmod.h::acmod_write_scores" ref="a66d1f73cd1d975ec0da9de00b80b36e2" args="(acmod_t *acmod, int n_active, uint8 const *active, int16 const *senscr, FILE *senfh)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a66d1f73cd1d975ec0da9de00b80b36e2">acmod_write_scores</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, int n_active, uint8 const *active, int16 const *senscr, FILE *senfh)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a frame of senone scores to a dump file. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3249e1ce0c8155dc23f332f97ddd493b"></a><!-- doxytag: member="acmod.h::acmod_best_score" ref="a3249e1ce0c8155dc23f332f97ddd493b" args="(acmod_t *acmod, int *out_best_senid)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a3249e1ce0c8155dc23f332f97ddd493b">acmod_best_score</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, int *out_best_senid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get best score and senone index for current frame. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed43f033f434e34fd90c975909d81cb2"></a><!-- doxytag: member="acmod.h::acmod_clear_active" ref="aed43f033f434e34fd90c975909d81cb2" args="(acmod_t *acmod)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#aed43f033f434e34fd90c975909d81cb2">acmod_clear_active</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear set of active senones. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2a7f67d462279b2bc4774c7967ae61c7"></a><!-- doxytag: member="acmod.h::acmod_activate_hmm" ref="a2a7f67d462279b2bc4774c7967ae61c7" args="(acmod_t *acmod, hmm_t *hmm)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#a2a7f67d462279b2bc4774c7967ae61c7">acmod_activate_hmm</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod, <a class="el" href="structhmm__t.html">hmm_t</a> *hmm)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Activate senones associated with an HMM. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad12224c741f7ea76faf88a29537f83dd"></a><!-- doxytag: member="acmod.h::acmod_flags2list" ref="ad12224c741f7ea76faf88a29537f83dd" args="(acmod_t *acmod)" -->
int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acmod_8h.html#ad12224c741f7ea76faf88a29537f83dd">acmod_flags2list</a> (<a class="el" href="structacmod__s.html">acmod_t</a> *acmod)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Build active list from. <br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Acoustic model structures for PocketSphinx. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>David Huggins-Daines &lt;<a href="mailto:dhuggins@cs.cmu.edu">dhuggins@cs.cmu.edu</a>&gt; </dd></dl>

<p>Definition in file <a class="el" href="acmod_8h_source.html">acmod.h</a>.</p>
</div><hr/><h2>Define Documentation</h2>
<a class="anchor" id="a5a5fa4e65582dd7e2df449e4ae95fa96"></a><!-- doxytag: member="acmod.h::ps_mgau_frame_eval" ref="a5a5fa4e65582dd7e2df449e4ae95fa96" args="(mg, senscr, senone_active, n_senone_active, feat, frame, compallsen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ps_mgau_frame_eval</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">mg, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">senscr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">senone_active, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">n_senone_active, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">feat, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">frame, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">compallsen&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">(*ps_mgau_base(mg)-&gt;vt-&gt;frame_eval)                                 \
    (mg, senscr, senone_active, n_senone_active, feat, frame, compallsen)
</pre></div>
<p>Definition at line <a class="el" href="acmod_8h_source.html#l00118">118</a> of file <a class="el" href="acmod_8h_source.html">acmod.h</a>.</p>

</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="a6a74b084234e0e7d5e72161545c5040b"></a><!-- doxytag: member="acmod.h::acmod_state_e" ref="a6a74b084234e0e7d5e72161545c5040b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="acmod_8h.html#a6a74b084234e0e7d5e72161545c5040b">acmod_state_e</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>States in utterance processing. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a6a74b084234e0e7d5e72161545c5040ba09f7964816ae844c445acd4cf3e33253"></a><!-- doxytag: member="ACMOD_IDLE" ref="a6a74b084234e0e7d5e72161545c5040ba09f7964816ae844c445acd4cf3e33253" args="" -->ACMOD_IDLE</em>&nbsp;</td><td>
<p>Not in an utterance. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a6a74b084234e0e7d5e72161545c5040ba71f39dbe81403dbb045f4312d1bbaae3"></a><!-- doxytag: member="ACMOD_STARTED" ref="a6a74b084234e0e7d5e72161545c5040ba71f39dbe81403dbb045f4312d1bbaae3" args="" -->ACMOD_STARTED</em>&nbsp;</td><td>
<p>Utterance started, no data yet. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a6a74b084234e0e7d5e72161545c5040ba1ed8df720ee7006ebaada8c75371d94c"></a><!-- doxytag: member="ACMOD_PROCESSING" ref="a6a74b084234e0e7d5e72161545c5040ba1ed8df720ee7006ebaada8c75371d94c" args="" -->ACMOD_PROCESSING</em>&nbsp;</td><td>
<p>Utterance in progress. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a6a74b084234e0e7d5e72161545c5040ba3d936d27ce644db26a862830f3b6d188"></a><!-- doxytag: member="ACMOD_ENDED" ref="a6a74b084234e0e7d5e72161545c5040ba3d936d27ce644db26a862830f3b6d188" args="" -->ACMOD_ENDED</em>&nbsp;</td><td>
<p>Utterance ended, still buffering. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="acmod_8h_source.html#l00066">66</a> of file <a class="el" href="acmod_8h_source.html">acmod.h</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a338971ea0aa27fb4796d224e4767642b"></a><!-- doxytag: member="acmod.h::acmod_advance" ref="a338971ea0aa27fb4796d224e4767642b" args="(acmod_t *acmod)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_advance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Advance the frame index. </p>
<p>This function moves to the next frame of input data. Subsequent calls to <a class="el" href="acmod_8c.html#acd78e9bae06724df9c53f844d90c1c8a" title="Score one frame of data.">acmod_score()</a> will return scores for that frame, until the next call to <a class="el" href="acmod_8c.html#a338971ea0aa27fb4796d224e4767642b" title="Advance the frame index.">acmod_advance()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>New frame index. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00880">880</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00191">acmod_s::feat_outidx</a>, <a class="el" href="acmod_8h_source.html#l00114">ps_mgau_s::frame_idx</a>, <a class="el" href="acmod_8h_source.html#l00160">acmod_s::mgau</a>, <a class="el" href="acmod_8h_source.html#l00189">acmod_s::n_feat_alloc</a>, <a class="el" href="acmod_8h_source.html#l00190">acmod_s::n_feat_frame</a>, and <a class="el" href="acmod_8h_source.html#l00185">acmod_s::output_frame</a>.</p>

</div>
</div>
<a class="anchor" id="a91c63cce3b20f231aa483bf054eca3c6"></a><!-- doxytag: member="acmod.h::acmod_get_frame" ref="a91c63cce3b20f231aa483bf054eca3c6" args="(acmod_t *acmod, int *inout_frame_idx)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">mfcc_t** acmod_get_frame </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>inout_frame_idx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a frame of dynamic feature data. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">inout_frame_idx</td><td>Input: frame index to get, or NULL to obtain features for the most recent frame. Output: frame index corresponding to this set of features. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Feature array, or NULL if requested frame is not available. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l01064">1064</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00173">acmod_s::feat_buf</a>.</p>

</div>
</div>
<a class="anchor" id="a6f32b623cbc3d15a1e3c5d09aba7dabf"></a><!-- doxytag: member="acmod.h::acmod_init" ref="a6f32b623cbc3d15a1e3c5d09aba7dabf" args="(cmd_ln_t *config, logmath_t *lmath, fe_t *fe, feat_t *fcb)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structacmod__s.html">acmod_t</a>* acmod_init </td>
          <td>(</td>
          <td class="paramtype">cmd_ln_t *&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">logmath_t *&#160;</td>
          <td class="paramname"><em>lmath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">fe_t *&#160;</td>
          <td class="paramname"><em>fe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">feat_t *&#160;</td>
          <td class="paramname"><em>fcb</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialize an acoustic model. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>a command-line object containing parameters. This pointer is not retained by this object. </td></tr>
    <tr><td class="paramname">lmath</td><td>global log-math parameters. </td></tr>
    <tr><td class="paramname">fe</td><td>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. </td></tr>
    <tr><td class="paramname">fe</td><td>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. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a newly initialized acmod_t, or NULL on failure. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00229">229</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8c_source.html#l00307">acmod_free()</a>, <a class="el" href="acmod_8h_source.html#l00067">ACMOD_IDLE</a>, <a class="el" href="acmod_8h_source.html#l00182">acmod_s::compallsen</a>, <a class="el" href="acmod_8h_source.html#l00149">acmod_s::config</a>, <a class="el" href="acmod_8h_source.html#l00155">acmod_s::fcb</a>, <a class="el" href="acmod_8h_source.html#l00154">acmod_s::fe</a>, <a class="el" href="acmod_8h_source.html#l00173">acmod_s::feat_buf</a>, <a class="el" href="acmod_8h_source.html#l00178">acmod_s::framepos</a>, <a class="el" href="acmod_8h_source.html#l00150">acmod_s::lmath</a>, <a class="el" href="acmod_8h_source.html#l00169">acmod_s::log_zero</a>, <a class="el" href="acmod_8h_source.html#l00158">acmod_s::mdef</a>, <a class="el" href="acmod_8h_source.html#l00172">acmod_s::mfc_buf</a>, <a class="el" href="acmod_8h_source.html#l00189">acmod_s::n_feat_alloc</a>, <a class="el" href="acmod_8h_source.html#l00186">acmod_s::n_mfc_alloc</a>, <a class="el" href="acmod_8h_source.html#l00166">acmod_s::senone_active</a>, <a class="el" href="acmod_8h_source.html#l00165">acmod_s::senone_active_vec</a>, <a class="el" href="acmod_8h_source.html#l00164">acmod_s::senone_scores</a>, and <a class="el" href="acmod_8h_source.html#l00181">acmod_s::state</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00193">ps_reinit()</a>.</p>

</div>
</div>
<a class="anchor" id="a9464f7708a361171469d613d401619fe"></a><!-- doxytag: member="acmod.h::acmod_process_cep" ref="a9464f7708a361171469d613d401619fe" args="(acmod_t *acmod, mfcc_t ***inout_cep, int *inout_n_frames, int full_utt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_process_cep </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mfcc_t ***&#160;</td>
          <td class="paramname"><em>inout_cep</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>inout_n_frames</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>full_utt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Feed acoustic feature data into the acoustic model for scoring. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">inout_cep</td><td>In: Pointer to buffer of features Out: Pointer to next frame to be read </td></tr>
    <tr><td class="paramname">inout_n_frames</td><td>In: Number of frames available Out: Number of frames remaining </td></tr>
    <tr><td class="paramname">full_utt</td><td>If non-zero, this block represents a full utterance and should be processed as such. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of frames of data processed. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00689">689</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00070">ACMOD_ENDED</a>, <a class="el" href="acmod_8h_source.html#l00069">ACMOD_PROCESSING</a>, <a class="el" href="acmod_8h_source.html#l00068">ACMOD_STARTED</a>, <a class="el" href="acmod_8h_source.html#l00155">acmod_s::fcb</a>, <a class="el" href="acmod_8h_source.html#l00173">acmod_s::feat_buf</a>, <a class="el" href="acmod_8h_source.html#l00191">acmod_s::feat_outidx</a>, <a class="el" href="acmod_8h_source.html#l00183">acmod_s::grow_feat</a>, <a class="el" href="acmod_8h_source.html#l00175">acmod_s::mfcfh</a>, <a class="el" href="acmod_8h_source.html#l00189">acmod_s::n_feat_alloc</a>, <a class="el" href="acmod_8h_source.html#l00190">acmod_s::n_feat_frame</a>, and <a class="el" href="acmod_8h_source.html#l00181">acmod_s::state</a>.</p>

</div>
</div>
<a class="anchor" id="ab16e414d5a07519d7b462c32377e8a47"></a><!-- doxytag: member="acmod.h::acmod_process_feat" ref="ab16e414d5a07519d7b462c32377e8a47" args="(acmod_t *acmod, mfcc_t **feat)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_process_feat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mfcc_t **&#160;</td>
          <td class="paramname"><em>feat</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Feed dynamic feature data into the acoustic model for scoring. </p>
<p>Unlike <a class="el" href="acmod_8c.html#a23e63c8833e6128ae248e183d42f9b2b" title="TODO: Set queue length for utterance processing.">acmod_process_raw()</a> and <a class="el" href="acmod_8c.html#a9464f7708a361171469d613d401619fe" title="Feed acoustic feature data into the acoustic model for scoring.">acmod_process_cep()</a>, 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 <a class="el" href="acmod_8c.html#acd78e9bae06724df9c53f844d90c1c8a" title="Score one frame of data.">acmod_score()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">feat</td><td>Pointer to one frame of dynamic features. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of frames processed (either 0 or 1). </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00781">781</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00155">acmod_s::fcb</a>, <a class="el" href="acmod_8h_source.html#l00173">acmod_s::feat_buf</a>, <a class="el" href="acmod_8h_source.html#l00191">acmod_s::feat_outidx</a>, <a class="el" href="acmod_8h_source.html#l00183">acmod_s::grow_feat</a>, <a class="el" href="acmod_8h_source.html#l00189">acmod_s::n_feat_alloc</a>, and <a class="el" href="acmod_8h_source.html#l00190">acmod_s::n_feat_frame</a>.</p>

</div>
</div>
<a class="anchor" id="a23e63c8833e6128ae248e183d42f9b2b"></a><!-- doxytag: member="acmod.h::acmod_process_raw" ref="a23e63c8833e6128ae248e183d42f9b2b" args="(acmod_t *acmod, int16 const **inout_raw, size_t *inout_n_samps, int full_utt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_process_raw </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16 const **&#160;</td>
          <td class="paramname"><em>inout_raw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>inout_n_samps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>full_utt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>TODO: Set queue length for utterance processing. </p>
<p>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.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">inout_raw</td><td>In: Pointer to buffer of raw samples Out: Pointer to next sample to be read </td></tr>
    <tr><td class="paramname">inout_n_samps</td><td>In: Number of samples available Out: Number of samples remaining </td></tr>
    <tr><td class="paramname">full_utt</td><td>If non-zero, this block represents a full utterance and should be processed as such. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of frames of data processed. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00620">620</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00154">acmod_s::fe</a>, <a class="el" href="acmod_8h_source.html#l00172">acmod_s::mfc_buf</a>, <a class="el" href="acmod_8h_source.html#l00188">acmod_s::mfc_outidx</a>, <a class="el" href="acmod_8h_source.html#l00186">acmod_s::n_mfc_alloc</a>, <a class="el" href="acmod_8h_source.html#l00187">acmod_s::n_mfc_frame</a>, and <a class="el" href="acmod_8h_source.html#l00174">acmod_s::rawfh</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00747">ps_process_raw()</a>.</p>

</div>
</div>
<a class="anchor" id="a5c193164be78ad42944b7fb1be6299a2"></a><!-- doxytag: member="acmod.h::acmod_read_scores" ref="a5c193164be78ad42944b7fb1be6299a2" args="(acmod_t *acmod)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_read_scores </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read one frame of scores from senone score dump file. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of frames read or &lt;0 on error. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00991">991</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00191">acmod_s::feat_outidx</a>, <a class="el" href="acmod_8h_source.html#l00178">acmod_s::framepos</a>, <a class="el" href="acmod_8h_source.html#l00183">acmod_s::grow_feat</a>, <a class="el" href="acmod_8h_source.html#l00177">acmod_s::insenfh</a>, <a class="el" href="acmod_8h_source.html#l00189">acmod_s::n_feat_alloc</a>, <a class="el" href="acmod_8h_source.html#l00190">acmod_s::n_feat_frame</a>, <a class="el" href="acmod_8h_source.html#l00168">acmod_s::n_senone_active</a>, <a class="el" href="acmod_8h_source.html#l00185">acmod_s::output_frame</a>, and <a class="el" href="acmod_8h_source.html#l00167">acmod_s::senscr_frame</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00725">ps_decode_senscr()</a>.</p>

</div>
</div>
<a class="anchor" id="a7b5f0b6edac2985b9b56d630cd705b99"></a><!-- doxytag: member="acmod.h::acmod_rewind" ref="a7b5f0b6edac2985b9b56d630cd705b99" args="(acmod_t *acmod)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_rewind </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Rewind the current utterance, allowing it to be rescored. </p>
<p>After calling this function, the internal frame index is reset, and <a class="el" href="acmod_8c.html#acd78e9bae06724df9c53f844d90c1c8a" title="Score one frame of data.">acmod_score()</a> will return scores starting at the first frame of the current utterance. Currently, <a class="el" href="acmod_8c.html#a1555dac8fa27f644d709c5c89bbfa881" title="Set memory allocation policy for utterance processing.">acmod_set_grow()</a> 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.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 for success, &lt;0 for failure (if the utterance can't be rewound due to no feature or score data available) </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00858">858</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00191">acmod_s::feat_outidx</a>, <a class="el" href="acmod_8h_source.html#l00114">ps_mgau_s::frame_idx</a>, <a class="el" href="acmod_8h_source.html#l00160">acmod_s::mgau</a>, <a class="el" href="acmod_8h_source.html#l00189">acmod_s::n_feat_alloc</a>, <a class="el" href="acmod_8h_source.html#l00190">acmod_s::n_feat_frame</a>, <a class="el" href="acmod_8h_source.html#l00185">acmod_s::output_frame</a>, and <a class="el" href="acmod_8h_source.html#l00167">acmod_s::senscr_frame</a>.</p>

</div>
</div>
<a class="anchor" id="acd78e9bae06724df9c53f844d90c1c8a"></a><!-- doxytag: member="acmod.h::acmod_score" ref="acd78e9bae06724df9c53f844d90c1c8a" args="(acmod_t *acmod, int *inout_frame_idx)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16 const* acmod_score </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>inout_frame_idx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Score one frame of data. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">inout_frame_idx</td><td>Input: frame index to score, or NULL to obtain scores for the most recent frame. Output: frame index corresponding to this set of scores. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>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 <a class="el" href="acmod_8c.html#acd78e9bae06724df9c53f844d90c1c8a" title="Score one frame of data.">acmod_score()</a> or <a class="el" href="acmod_8c.html#a338971ea0aa27fb4796d224e4767642b" title="Advance the frame index.">acmod_advance()</a>. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l01082">1082</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8c_source.html#l01226">acmod_flags2list()</a>, <a class="el" href="acmod_8c_source.html#l00892">acmod_write_scores()</a>, <a class="el" href="acmod_8h_source.html#l00182">acmod_s::compallsen</a>, <a class="el" href="acmod_8h_source.html#l00173">acmod_s::feat_buf</a>, <a class="el" href="acmod_8h_source.html#l00178">acmod_s::framepos</a>, <a class="el" href="acmod_8h_source.html#l00177">acmod_s::insenfh</a>, <a class="el" href="acmod_8h_source.html#l00160">acmod_s::mgau</a>, <a class="el" href="acmod_8h_source.html#l00168">acmod_s::n_senone_active</a>, <a class="el" href="acmod_8h_source.html#l00176">acmod_s::senfh</a>, <a class="el" href="acmod_8h_source.html#l00166">acmod_s::senone_active</a>, <a class="el" href="acmod_8h_source.html#l00164">acmod_s::senone_scores</a>, and <a class="el" href="acmod_8h_source.html#l00167">acmod_s::senscr_frame</a>.</p>

<p>Referenced by <a class="el" href="ngram__search__fwdflat_8c_source.html#l00811">ngram_fwdflat_search()</a>, and <a class="el" href="ngram__search__fwdtree_8c_source.html#l01455">ngram_fwdtree_search()</a>.</p>

</div>
</div>
<a class="anchor" id="a1555dac8fa27f644d709c5c89bbfa881"></a><!-- doxytag: member="acmod.h::acmod_set_grow" ref="a1555dac8fa27f644d709c5c89bbfa881" args="(acmod_t *acmod, int grow_feat)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_set_grow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>grow_feat</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set memory allocation policy for utterance processing. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">grow_feat</td><td>If non-zero, the internal dynamic feature buffer will expand as necessary to encompass any amount of data fed to the model. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>previous allocation policy. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00421">421</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00183">acmod_s::grow_feat</a>, and <a class="el" href="acmod_8h_source.html#l00189">acmod_s::n_feat_alloc</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00747">ps_process_raw()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00193">ps_reinit()</a>.</p>

</div>
</div>
<a class="anchor" id="ad8da89ae642a4a9a5e57390e9ce387c5"></a><!-- doxytag: member="acmod.h::acmod_set_insenfh" ref="ad8da89ae642a4a9a5e57390e9ce387c5" args="(acmod_t *acmod, FILE *insenfh)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_set_insenfh </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>insenfh</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set up a senone score dump file for input. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">insenfh</td><td>File handle of dump file </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 for success, &lt;0 for failure </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00845">845</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00182">acmod_s::compallsen</a>, <a class="el" href="acmod_8h_source.html#l00149">acmod_s::config</a>, <a class="el" href="acmod_8h_source.html#l00177">acmod_s::insenfh</a>, and <a class="el" href="acmod_8h_source.html#l00190">acmod_s::n_feat_frame</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00725">ps_decode_senscr()</a>.</p>

</div>
</div>
<a class="anchor" id="a5753caa516c75bdc74b385d7aa66a97c"></a><!-- doxytag: member="acmod.h::acmod_set_mfcfh" ref="a5753caa516c75bdc74b385d7aa66a97c" args="(acmod_t *acmod, FILE *logfh)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_set_mfcfh </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>logfh</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Start logging MFCCs to a filehandle. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">acmod</td><td>Acoustic model object. </td></tr>
    <tr><td class="paramname">logfh</td><td>Filehandle to log to. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 for success, &lt;0 on error. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00381">381</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00175">acmod_s::mfcfh</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00619">ps_start_utt()</a>.</p>

</div>
</div>
<a class="anchor" id="a6979441ae866ea846ef41f8471b105a0"></a><!-- doxytag: member="acmod.h::acmod_set_rawfh" ref="a6979441ae866ea846ef41f8471b105a0" args="(acmod_t *acmod, FILE *logfh)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_set_rawfh </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>logfh</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Start logging raw audio to a filehandle. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">acmod</td><td>Acoustic model object. </td></tr>
    <tr><td class="paramname">logfh</td><td>Filehandle to log to. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 for success, &lt;0 on error. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00393">393</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00174">acmod_s::rawfh</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00619">ps_start_utt()</a>.</p>

</div>
</div>
<a class="anchor" id="a8e7bd5781f5232395f29fd0cd7f56004"></a><!-- doxytag: member="acmod.h::acmod_set_senfh" ref="a8e7bd5781f5232395f29fd0cd7f56004" args="(acmod_t *acmod, FILE *senfh)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int acmod_set_senfh </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>senfh</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Start logging senone scores to a filehandle. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">acmod</td><td>Acoustic model object. </td></tr>
    <tr><td class="paramname">logfh</td><td>Filehandle to log to. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 for success, &lt;0 on error. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00370">370</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8c_source.html#l00356">acmod_write_senfh_header()</a>, and <a class="el" href="acmod_8h_source.html#l00176">acmod_s::senfh</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00619">ps_start_utt()</a>.</p>

</div>
</div>
<a class="anchor" id="a4205b92d38db562577eafc3c432593ab"></a><!-- doxytag: member="acmod.h::acmod_update_mllr" ref="a4205b92d38db562577eafc3c432593ab" args="(acmod_t *acmod, ps_mllr_t *mllr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structps__mllr__s.html">ps_mllr_t</a>* acmod_update_mllr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structacmod__s.html">acmod_t</a> *&#160;</td>
          <td class="paramname"><em>acmod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structps__mllr__s.html">ps_mllr_t</a> *&#160;</td>
          <td class="paramname"><em>mllr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adapt acoustic model using a linear transform. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mllr</td><td>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 <a class="el" href="ps__mllr_8h.html#a2f40deff6976bf03a845aa474494edfb" title="Retain a pointer to a linear transform.">ps_mllr_retain()</a> if you wish to reuse it elsewhere. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The updated transform object for this decoder, or NULL on failure. </dd></dl>

<p>Definition at line <a class="el" href="acmod_8c_source.html#l00345">345</a> of file <a class="el" href="acmod_8c_source.html">acmod.c</a>.</p>

<p>References <a class="el" href="acmod_8h_source.html#l00160">acmod_s::mgau</a>, <a class="el" href="acmod_8h_source.html#l00161">acmod_s::mllr</a>, and <a class="el" href="ps__mllr_8c_source.html#l00145">ps_mllr_free()</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00378">ps_update_mllr()</a>.</p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="acmod_8h.html">acmod.h</a>      </li>
      <li class="footer">Generated on Wed Apr 20 2011 for PocketSphinx by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>

</body>
</html>