Sophie

Sophie

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

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: include/pocketsphinx.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('pocketsphinx_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<h1>include/pocketsphinx.h File Reference</h1>  </div>
</div>
<div class="contents">

<p>Main header file for the PocketSphinx decoder.  
<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/ngram_model.h&gt;</code><br/>
<code>#include &lt;pocketsphinx_export.h&gt;</code><br/>
<code>#include &lt;cmdln_macro.h&gt;</code><br/>
<code>#include &lt;<a class="el" href="ps__lattice_8h_source.html">ps_lattice.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="ps__mllr_8h_source.html">ps_mllr.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="fsg__set_8h_source.html">fsg_set.h</a>&gt;</code><br/>
</div>
<p><a href="pocketsphinx_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<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="ac6ba825b5a9e1c9003b257221eb6e055"></a><!-- doxytag: member="pocketsphinx.h::ps_decoder_t" ref="ac6ba825b5a9e1c9003b257221eb6e055" args="" -->
typedef struct <a class="el" href="structps__decoder__s.html">ps_decoder_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ac6ba825b5a9e1c9003b257221eb6e055">ps_decoder_t</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">PocketSphinx speech recognizer object. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73090e41024a1f07f5552b83ac7e0993"></a><!-- doxytag: member="pocketsphinx.h::ps_nbest_t" ref="a73090e41024a1f07f5552b83ac7e0993" args="" -->
typedef struct <a class="el" href="structps__astar__s.html">ps_astar_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a73090e41024a1f07f5552b83ac7e0993">ps_nbest_t</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">PocketSphinx N-best hypothesis iterator object. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64d3ac229ef945017112bab4c2a5ec94"></a><!-- doxytag: member="pocketsphinx.h::ps_seg_t" ref="a64d3ac229ef945017112bab4c2a5ec94" args="" -->
typedef struct <a class="el" href="structps__seg__s.html">ps_seg_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a64d3ac229ef945017112bab4c2a5ec94">ps_seg_t</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">PocketSphinx segmentation iterator object. <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">POCKETSPHINX_EXPORT <a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ad033da98d0f7785d6ab89a41dac3cc7c">ps_init</a> (cmd_ln_t *config)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the decoder from a configuration object.  <a href="#ad033da98d0f7785d6ab89a41dac3cc7c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a391679e7edb0de1e324aa302ee820287">ps_reinit</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, cmd_ln_t *config)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reinitialize the decoder with updated configuration.  <a href="#a391679e7edb0de1e324aa302ee820287"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT arg_t const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ad873ea6e20f91a3284963d5c34331c58">ps_args</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the argument definitions used in <a class="el" href="pocketsphinx_8h.html#ad033da98d0f7785d6ab89a41dac3cc7c" title="Initialize the decoder from a configuration object.">ps_init()</a>.  <a href="#ad873ea6e20f91a3284963d5c34331c58"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT <a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a8d912ce9a5fea61b7b10db1750531c34">ps_retain</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retain a pointer to the decoder.  <a href="#a8d912ce9a5fea61b7b10db1750531c34"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ad8fd9b79ae9f87703af3f4755b3ab567">ps_free</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Finalize the decoder.  <a href="#ad8fd9b79ae9f87703af3f4755b3ab567"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT cmd_ln_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#abb9256d8f7217a1e929509090df1f35b">ps_get_config</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the configuration object for this decoder.  <a href="#abb9256d8f7217a1e929509090df1f35b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT logmath_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a249cfc383b7d9111a28b550945a606b5">ps_get_logmath</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the log-math computation object for this decoder.  <a href="#a249cfc383b7d9111a28b550945a606b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT fe_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a6237e2822756f230b88019b533a28724">ps_get_fe</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the feature extraction object for this decoder.  <a href="#a6237e2822756f230b88019b533a28724"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT feat_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a0d74d90f0db0782386487cc061a09218">ps_get_feat</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the dynamic feature computation object for this decoder.  <a href="#a0d74d90f0db0782386487cc061a09218"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT <a class="el" href="structps__mllr__s.html">ps_mllr_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a85e04bcbf5366f1bdad555dbb4d73d5d">ps_update_mllr</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, <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 current acoustic model using a linear transform.  <a href="#a85e04bcbf5366f1bdad555dbb4d73d5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT ngram_model_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ab9e59bf2ebf2aa1a6a781371685f8740">ps_get_lmset</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the language model set object for this decoder.  <a href="#ab9e59bf2ebf2aa1a6a781371685f8740"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT ngram_model_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ae00bebeadaa6fc6fa8eb93b450651dc5">ps_update_lmset</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, ngram_model_t *lmset)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the language model set object for this decoder.  <a href="#ae00bebeadaa6fc6fa8eb93b450651dc5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT <a class="el" href="structfsg__search__s.html">fsg_set_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a784b72a30fc7ec25e26a0380df46f8be">ps_get_fsgset</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the finite-state grammar set object for this decoder.  <a href="#a784b72a30fc7ec25e26a0380df46f8be"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT <a class="el" href="structfsg__search__s.html">fsg_set_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a3aaadef189cda344cd109c3110606aba">ps_update_fsgset</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the finite-state grammar set object for this decoder.  <a href="#a3aaadef189cda344cd109c3110606aba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a824f46e51681d931b7e2706a86c3d86f">ps_load_dict</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, char const *dictfile, char const *fdictfile, char const *format)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reload the pronunciation dictionary from a file.  <a href="#a824f46e51681d931b7e2706a86c3d86f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a5e278377cc57d921591ce95b980760d5">ps_save_dict</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, char const *dictfile, char const *format)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Dump the current pronunciation dictionary to a file.  <a href="#a5e278377cc57d921591ce95b980760d5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a5f3c4fcdbef34915c4e785ac9a1c6005">ps_add_word</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, char const *word, char const *phones, int update)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a word to the pronunciation dictionary.  <a href="#a5f3c4fcdbef34915c4e785ac9a1c6005"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ac9a9a0df5cebda28876c1e95bd197321">ps_decode_raw</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, FILE *rawfh, char const *uttid, long maxsamps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Decode a raw audio stream.  <a href="#ac9a9a0df5cebda28876c1e95bd197321"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#aa2957bf4fb90d6a78d1daffd3dd82c3f">ps_decode_senscr</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, FILE *senfh, char const *uttid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Decode a senone score dump file.  <a href="#aa2957bf4fb90d6a78d1daffd3dd82c3f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a0b70e54570e21ad3a784b40071818579">ps_start_utt</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, char const *uttid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Start utterance processing.  <a href="#a0b70e54570e21ad3a784b40071818579"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT char const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a4a949fc555734d1e1b9f6fd4a19008c2">ps_get_uttid</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get current utterance ID.  <a href="#a4a949fc555734d1e1b9f6fd4a19008c2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a572ad08651b4caae820d178a12c8f95f">ps_process_raw</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, int16 const *data, size_t n_samples, int no_search, int full_utt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Decode raw audio data.  <a href="#a572ad08651b4caae820d178a12c8f95f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#adc0ab735d6460142126bc31a9e9d2ba0">ps_process_cep</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, mfcc_t **data, int n_frames, int no_search, int full_utt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Decode acoustic feature data.  <a href="#adc0ab735d6460142126bc31a9e9d2ba0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#abb3527e41c2f4cd64dccbdbd5f812d1d">ps_get_n_frames</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of frames of data searched.  <a href="#abb3527e41c2f4cd64dccbdbd5f812d1d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ab9339de730713b68cbd68a7f36dc8730">ps_end_utt</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">End utterance processing.  <a href="#ab9339de730713b68cbd68a7f36dc8730"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT char const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ae4130fef938568440c014abae0e4de5e">ps_get_hyp</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, int32 *out_best_score, char const **out_uttid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get hypothesis string and path score.  <a href="#ae4130fef938568440c014abae0e4de5e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#afa6631ae5c30a30eec08c7bf1ef41ef5">ps_get_prob</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, char const **out_uttid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get posterior probability.  <a href="#afa6631ae5c30a30eec08c7bf1ef41ef5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT <a class="el" href="structps__lattice__s.html">ps_lattice_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ac7e8897e5eed452f284bef3ee53d2429">ps_get_lattice</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get word lattice.  <a href="#ac7e8897e5eed452f284bef3ee53d2429"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT <a class="el" href="structps__seg__s.html">ps_seg_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a2216f6ff53f6bc9c78f285ee3fe0d665">ps_seg_iter</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, int32 *out_best_score)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get an iterator over the word segmentation for the best hypothesis.  <a href="#a2216f6ff53f6bc9c78f285ee3fe0d665"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT <a class="el" href="structps__seg__s.html">ps_seg_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ae16ba181f654ffc9bfbbe861e9315f12">ps_seg_next</a> (<a class="el" href="structps__seg__s.html">ps_seg_t</a> *seg)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the next segment in a word segmentation.  <a href="#ae16ba181f654ffc9bfbbe861e9315f12"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT char const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a8a4fed34b58885627b53e99e90514169">ps_seg_word</a> (<a class="el" href="structps__seg__s.html">ps_seg_t</a> *seg)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get word string from a segmentation iterator.  <a href="#a8a4fed34b58885627b53e99e90514169"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a045a044726b816678965514f2ee7d8c7">ps_seg_frames</a> (<a class="el" href="structps__seg__s.html">ps_seg_t</a> *seg, int *out_sf, int *out_ef)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get inclusive start and end frames from a segmentation iterator.  <a href="#a045a044726b816678965514f2ee7d8c7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#adfd45d93c3fc9de6b7be89d5417f6abb">ps_seg_prob</a> (<a class="el" href="structps__seg__s.html">ps_seg_t</a> *seg, int32 *out_ascr, int32 *out_lscr, int32 *out_lback)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get language, acoustic, and posterior probabilities from a segmentation iterator.  <a href="#adfd45d93c3fc9de6b7be89d5417f6abb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac02cea69794b0fbd17e6a4c5265b2255"></a><!-- doxytag: member="pocketsphinx.h::ps_seg_free" ref="ac02cea69794b0fbd17e6a4c5265b2255" args="(ps_seg_t *seg)" -->
POCKETSPHINX_EXPORT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#ac02cea69794b0fbd17e6a4c5265b2255">ps_seg_free</a> (<a class="el" href="structps__seg__s.html">ps_seg_t</a> *seg)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Finish iterating over a word segmentation early, freeing resources. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT <a class="el" href="structps__astar__s.html">ps_nbest_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#af4bb6ba47844a135745db428919d9810">ps_nbest</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, int sf, int ef, char const *ctx1, char const *ctx2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get an iterator over the best hypotheses, optionally within a selected region of the utterance.  <a href="#af4bb6ba47844a135745db428919d9810"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT <a class="el" href="structps__astar__s.html">ps_nbest_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a0942b8c0570009319a5be20ef1b52821">ps_nbest_next</a> (<a class="el" href="structps__astar__s.html">ps_nbest_t</a> *nbest)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Move an N-best list iterator forward.  <a href="#a0942b8c0570009319a5be20ef1b52821"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT char const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a250c5f72d3addd0d0254f3ceeaa17ace">ps_nbest_hyp</a> (<a class="el" href="structps__astar__s.html">ps_nbest_t</a> *nbest, int32 *out_score)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the hypothesis string from an N-best list iterator.  <a href="#a250c5f72d3addd0d0254f3ceeaa17ace"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT <a class="el" href="structps__seg__s.html">ps_seg_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a1d2b6fd873d8213bd53a915ff2758785">ps_nbest_seg</a> (<a class="el" href="structps__astar__s.html">ps_nbest_t</a> *nbest, int32 *out_score)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the word segmentation from an N-best list iterator.  <a href="#a1d2b6fd873d8213bd53a915ff2758785"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a83379b2da95eebdf5070d29196a9b067">ps_nbest_free</a> (<a class="el" href="structps__astar__s.html">ps_nbest_t</a> *nbest)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Finish N-best search early, releasing resources.  <a href="#a83379b2da95eebdf5070d29196a9b067"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#aac7070c934a2d03d0d5b34e19614360f">ps_get_utt_time</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, double *out_nspeech, double *out_ncpu, double *out_nwall)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get performance information for the current utterance.  <a href="#aac7070c934a2d03d0d5b34e19614360f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">POCKETSPHINX_EXPORT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="pocketsphinx_8h.html#a61fb92154c5c731cf4a24e0976263da0">ps_get_all_time</a> (<a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *ps, double *out_nspeech, double *out_ncpu, double *out_nwall)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get overall performance information.  <a href="#a61fb92154c5c731cf4a24e0976263da0"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Main header file for the PocketSphinx decoder. </p>

<p>Definition in file <a class="el" href="pocketsphinx_8h_source.html">pocketsphinx.h</a>.</p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a5f3c4fcdbef34915c4e785ac9a1c6005"></a><!-- doxytag: member="pocketsphinx.h::ps_add_word" ref="a5f3c4fcdbef34915c4e785ac9a1c6005" args="(ps_decoder_t *ps, char const *word, char const *phones, int update)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_add_word </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>word</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>phones</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>update</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add a word to the pronunciation dictionary. </p>
<p>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.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">word</td><td>Word string to add. </td></tr>
    <tr><td class="paramname">phones</td><td>Whitespace-separated list of phoneme strings describing pronunciation of <code>word</code>. </td></tr>
    <tr><td class="paramname">update</td><td>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. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The internal ID (&gt;= 0) of the newly added word, or &lt;0 on failure. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00518">518</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00190">ps_decoder_s::d2p</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00189">ps_decoder_s::dict</a>, <a class="el" href="dict2pid_8c_source.html#l00298">dict2pid_add_word()</a>, <a class="el" href="acmod_8h_source.html#l00158">acmod_s::mdef</a>, <a class="el" href="pocketsphinx_8c_source.html#l00518">ps_add_word()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00384">ps_get_lmset()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>.</p>

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

</div>
</div>
<a class="anchor" id="ad873ea6e20f91a3284963d5c34331c58"></a><!-- doxytag: member="pocketsphinx.h::ps_args" ref="ad873ea6e20f91a3284963d5c34331c58" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT arg_t const* ps_args </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the argument definitions used in <a class="el" href="pocketsphinx_8h.html#ad033da98d0f7785d6ab89a41dac3cc7c" title="Initialize the decoder from a configuration object.">ps_init()</a>. </p>
<p>This is here to avoid exporting global data, which is problematic on Win32 and Symbian (and possibly other platforms). </p>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00313">313</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx_8c_source.html#l00313">ps_args()</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00313">ps_args()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00456">ps_load_dict()</a>.</p>

</div>
</div>
<a class="anchor" id="ac9a9a0df5cebda28876c1e95bd197321"></a><!-- doxytag: member="pocketsphinx.h::ps_decode_raw" ref="ac9a9a0df5cebda28876c1e95bd197321" args="(ps_decoder_t *ps, FILE *rawfh, char const *uttid, long maxsamps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_decode_raw </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>rawfh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>uttid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>maxsamps</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Decode a raw audio stream. </p>
<p>No headers are recognized in this files. The configuration parameters <code>-samprate</code> and <code>-input_endian</code> are used to determine the sampling rate and endianness of the stream, respectively. Audio is always assumed to be 16-bit signed PCM.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
    <tr><td class="paramname">rawfh</td><td>Previously opened file stream. </td></tr>
    <tr><td class="paramname">uttid</td><td>Utterance ID (or NULL to generate automatically). </td></tr>
    <tr><td class="paramname">maxsamps</td><td>Maximum number of samples to read from rawfh, or -1 to read until end-of-file. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of samples of audio. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00579">579</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx_8c_source.html#l00579">ps_decode_raw()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00747">ps_process_raw()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00619">ps_start_utt()</a>.</p>

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

</div>
</div>
<a class="anchor" id="aa2957bf4fb90d6a78d1daffd3dd82c3f"></a><!-- doxytag: member="pocketsphinx.h::ps_decode_senscr" ref="aa2957bf4fb90d6a78d1daffd3dd82c3f" args="(ps_decoder_t *ps, FILE *senfh, char const *uttid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_decode_senscr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>senfh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>uttid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Decode a senone score dump file. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder </td></tr>
    <tr><td class="paramname">fh</td><td>Previously opened file handle positioned at start of file. </td></tr>
    <tr><td class="paramname">uttid</td><td>Utterance ID (or NULL to generate automatically). </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of frames read. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00725">725</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="acmod_8c_source.html#l00991">acmod_read_scores()</a>, <a class="el" href="acmod_8c_source.html#l00845">acmod_set_insenfh()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00725">ps_decode_senscr()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00619">ps_start_utt()</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="ab9339de730713b68cbd68a7f36dc8730"></a><!-- doxytag: member="pocketsphinx.h::ps_end_utt" ref="ab9339de730713b68cbd68a7f36dc8730" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_end_utt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>End utterance processing. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </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="pocketsphinx_8c_source.html#l00809">809</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="acmod_8c_source.html#l00450">acmod_end_utt()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00184">ps_decoder_s::config</a>, <a class="el" href="acmod_8h_source.html#l00185">acmod_s::output_frame</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00204">ps_decoder_s::perf</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00198">ps_decoder_s::phone_loop</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00199">ps_decoder_s::pl_window</a>, <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00865">ps_get_hyp()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00360">ps_get_logmath()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00914">ps_seg_frames()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00891">ps_seg_iter()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00902">ps_seg_next()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00921">ps_seg_prob()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00908">ps_seg_word()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00579">ps_decode_raw()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00725">ps_decode_senscr()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>.</p>

</div>
</div>
<a class="anchor" id="ad8fd9b79ae9f87703af3f4755b3ab567"></a><!-- doxytag: member="pocketsphinx.h::ps_free" ref="ad8fd9b79ae9f87703af3f4755b3ab567" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_free </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Finalize the decoder. </p>
<p>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 <a class="el" href="pocketsphinx_8h.html#ad033da98d0f7785d6ab89a41dac3cc7c" title="Initialize the decoder from a configuration object.">ps_init()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder to be freed. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>New reference count (0 if freed). </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00326">326</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="acmod_8c_source.html#l00307">acmod_free()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00184">ps_decoder_s::config</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00190">ps_decoder_s::d2p</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00189">ps_decoder_s::dict</a>, <a class="el" href="dict2pid_8c_source.html#l00507">dict2pid_free()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00191">ps_decoder_s::lmath</a>, <a class="el" href="pocketsphinx_8c_source.html#l00326">ps_free()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00185">ps_decoder_s::refcount</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00194">ps_decoder_s::searches</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00203">ps_decoder_s::uttid</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00326">ps_free()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00299">ps_init()</a>.</p>

</div>
</div>
<a class="anchor" id="a61fb92154c5c731cf4a24e0976263da0"></a><!-- doxytag: member="pocketsphinx.h::ps_get_all_time" ref="a61fb92154c5c731cf4a24e0976263da0" args="(ps_decoder_t *ps, double *out_nspeech, double *out_ncpu, double *out_nwall)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT void ps_get_all_time </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>out_nspeech</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>out_ncpu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>out_nwall</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get overall performance information. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
    <tr><td class="paramname">out_nspeech</td><td>Output: Number of seconds of speech. </td></tr>
    <tr><td class="paramname">out_ncpu</td><td>Output: Number of seconds of CPU time used. </td></tr>
    <tr><td class="paramname">out_nwall</td><td>Output: Number of seconds of wall time used. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l01031">1031</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00184">ps_decoder_s::config</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00205">ps_decoder_s::n_frame</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00204">ps_decoder_s::perf</a>, and <a class="el" href="pocketsphinx_8c_source.html#l01031">ps_get_all_time()</a>.</p>

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

</div>
</div>
<a class="anchor" id="abb9256d8f7217a1e929509090df1f35b"></a><!-- doxytag: member="pocketsphinx.h::ps_get_config" ref="abb9256d8f7217a1e929509090df1f35b" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT cmd_ln_t* ps_get_config </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the configuration object for this decoder. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>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. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00354">354</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00184">ps_decoder_s::config</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00354">ps_get_config()</a>.</p>

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

</div>
</div>
<a class="anchor" id="a6237e2822756f230b88019b533a28724"></a><!-- doxytag: member="pocketsphinx.h::ps_get_fe" ref="a6237e2822756f230b88019b533a28724" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT fe_t* ps_get_fe </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the feature extraction object for this decoder. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>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. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00366">366</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="acmod_8h_source.html#l00154">acmod_s::fe</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00366">ps_get_fe()</a>.</p>

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

</div>
</div>
<a class="anchor" id="a0d74d90f0db0782386487cc061a09218"></a><!-- doxytag: member="pocketsphinx.h::ps_get_feat" ref="a0d74d90f0db0782386487cc061a09218" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT feat_t* ps_get_feat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the dynamic feature computation object for this decoder. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>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. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00372">372</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="acmod_8h_source.html#l00155">acmod_s::fcb</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00372">ps_get_feat()</a>.</p>

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

</div>
</div>
<a class="anchor" id="a784b72a30fc7ec25e26a0380df46f8be"></a><!-- doxytag: member="pocketsphinx.h::ps_get_fsgset" ref="a784b72a30fc7ec25e26a0380df46f8be" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structfsg__search__s.html">fsg_set_t</a>* ps_get_fsgset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the finite-state grammar set object for this decoder. </p>
<p>If FSG decoding is not enabled, this returns NULL. Call <a class="el" href="pocketsphinx_8h.html#a3aaadef189cda344cd109c3110606aba" title="Update the finite-state grammar set object for this decoder.">ps_update_fsgset()</a> to enable it.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The current FSG set object for this decoder, or NULL if none is available. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00424">424</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx_8c_source.html#l00424">ps_get_fsgset()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>.</p>

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

</div>
</div>
<a class="anchor" id="ae4130fef938568440c014abae0e4de5e"></a><!-- doxytag: member="pocketsphinx.h::ps_get_hyp" ref="ae4130fef938568440c014abae0e4de5e" args="(ps_decoder_t *ps, int32 *out_best_score, char const **out_uttid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT char const* ps_get_hyp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32 *&#160;</td>
          <td class="paramname"><em>out_best_score</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const **&#160;</td>
          <td class="paramname"><em>out_uttid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get hypothesis string and path score. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
    <tr><td class="paramname">out_best_score</td><td>Output: path score corresponding to returned string. </td></tr>
    <tr><td class="paramname">out_uttid</td><td>Output: utterance ID for this utterance. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>String containing best hypothesis at this point in decoding. NULL if no hypothesis is available. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00865">865</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00204">ps_decoder_s::perf</a>, <a class="el" href="pocketsphinx_8c_source.html#l00865">ps_get_hyp()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00203">ps_decoder_s::uttid</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00865">ps_get_hyp()</a>.</p>

</div>
</div>
<a class="anchor" id="ac7e8897e5eed452f284bef3ee53d2429"></a><!-- doxytag: member="pocketsphinx.h::ps_get_lattice" ref="ac7e8897e5eed452f284bef3ee53d2429" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structps__lattice__s.html">ps_lattice_t</a>* ps_get_lattice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get word lattice. </p>
<p>There isn't much you can do with this so far, a public API will appear in the future.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>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 <a class="el" href="ps__lattice_8h.html#a9efc5f2836e2a0bd5d58326303516df5" title="Retain a lattice.">ps_lattice_retain()</a> to retain it. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00936">936</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx_8c_source.html#l00936">ps_get_lattice()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00936">ps_get_lattice()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00942">ps_nbest()</a>.</p>

</div>
</div>
<a class="anchor" id="ab9e59bf2ebf2aa1a6a781371685f8740"></a><!-- doxytag: member="pocketsphinx.h::ps_get_lmset" ref="ab9e59bf2ebf2aa1a6a781371685f8740" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT ngram_model_t* ps_get_lmset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the language model set object for this decoder. </p>
<p>If N-Gram decoding is not enabled, this will return NULL. You will need to enable it using <a class="el" href="pocketsphinx_8h.html#ae00bebeadaa6fc6fa8eb93b450651dc5" title="Update the language model set object for this decoder.">ps_update_lmset()</a>.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>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. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00384">384</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx_8c_source.html#l00384">ps_get_lmset()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00518">ps_add_word()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00384">ps_get_lmset()</a>.</p>

</div>
</div>
<a class="anchor" id="a249cfc383b7d9111a28b550945a606b5"></a><!-- doxytag: member="pocketsphinx.h::ps_get_logmath" ref="a249cfc383b7d9111a28b550945a606b5" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT logmath_t* ps_get_logmath </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the log-math computation object for this decoder. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>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. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00360">360</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00191">ps_decoder_s::lmath</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00360">ps_get_logmath()</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00360">ps_get_logmath()</a>.</p>

</div>
</div>
<a class="anchor" id="abb3527e41c2f4cd64dccbdbd5f812d1d"></a><!-- doxytag: member="pocketsphinx.h::ps_get_n_frames" ref="abb3527e41c2f4cd64dccbdbd5f812d1d" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_get_n_frames </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the number of frames of data searched. </p>
<p>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.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of frames of speech data which have been recognized so far. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l01013">1013</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="acmod_8h_source.html#l00185">acmod_s::output_frame</a>, and <a class="el" href="pocketsphinx_8c_source.html#l01013">ps_get_n_frames()</a>.</p>

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

</div>
</div>
<a class="anchor" id="afa6631ae5c30a30eec08c7bf1ef41ef5"></a><!-- doxytag: member="pocketsphinx.h::ps_get_prob" ref="afa6631ae5c30a30eec08c7bf1ef41ef5" args="(ps_decoder_t *ps, char const **out_uttid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int32 ps_get_prob </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const **&#160;</td>
          <td class="paramname"><em>out_uttid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get posterior probability. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>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.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
    <tr><td class="paramname">out_uttid</td><td>Output: utterance ID for this utterance. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Posterior probability of the best hypothesis. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00878">878</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00204">ps_decoder_s::perf</a>, <a class="el" href="pocketsphinx_8c_source.html#l00878">ps_get_prob()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00203">ps_decoder_s::uttid</a>.</p>

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

</div>
</div>
<a class="anchor" id="aac7070c934a2d03d0d5b34e19614360f"></a><!-- doxytag: member="pocketsphinx.h::ps_get_utt_time" ref="aac7070c934a2d03d0d5b34e19614360f" args="(ps_decoder_t *ps, double *out_nspeech, double *out_ncpu, double *out_nwall)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT void ps_get_utt_time </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>out_nspeech</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>out_ncpu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>out_nwall</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get performance information for the current utterance. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
    <tr><td class="paramname">out_nspeech</td><td>Output: Number of seconds of speech. </td></tr>
    <tr><td class="paramname">out_ncpu</td><td>Output: Number of seconds of CPU time used. </td></tr>
    <tr><td class="paramname">out_nwall</td><td>Output: Number of seconds of wall time used. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l01019">1019</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00184">ps_decoder_s::config</a>, <a class="el" href="acmod_8h_source.html#l00185">acmod_s::output_frame</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00204">ps_decoder_s::perf</a>, and <a class="el" href="pocketsphinx_8c_source.html#l01019">ps_get_utt_time()</a>.</p>

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

</div>
</div>
<a class="anchor" id="a4a949fc555734d1e1b9f6fd4a19008c2"></a><!-- doxytag: member="pocketsphinx.h::ps_get_uttid" ref="a4a949fc555734d1e1b9f6fd4a19008c2" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT char const* ps_get_uttid </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get current utterance ID. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder to query. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Read-only string of the current utterance ID. This is valid only until the beginning of the next utterance. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00348">348</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx_8c_source.html#l00348">ps_get_uttid()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00203">ps_decoder_s::uttid</a>.</p>

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

</div>
</div>
<a class="anchor" id="ad033da98d0f7785d6ab89a41dac3cc7c"></a><!-- doxytag: member="pocketsphinx.h::ps_init" ref="ad033da98d0f7785d6ab89a41dac3cc7c" args="(cmd_ln_t *config)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structps__decoder__s.html">ps_decoder_t</a>* ps_init </td>
          <td>(</td>
          <td class="paramtype">cmd_ln_t *&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialize the decoder from a configuration object. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>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.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>a command-line structure, as created by cmd_ln_parse_r() or cmd_ln_parse_file_r(). </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00299">299</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx_8c_source.html#l00326">ps_free()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00299">ps_init()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00193">ps_reinit()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00185">ps_decoder_s::refcount</a>.</p>

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

</div>
</div>
<a class="anchor" id="a824f46e51681d931b7e2706a86c3d86f"></a><!-- doxytag: member="pocketsphinx.h::ps_load_dict" ref="a824f46e51681d931b7e2706a86c3d86f" args="(ps_decoder_t *ps, char const *dictfile, char const *fdictfile, char const *format)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_load_dict </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>dictfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>fdictfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reload the pronunciation dictionary from a file. </p>
<p>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 <a class="el" href="pocketsphinx_8h.html#a5f3c4fcdbef34915c4e785ac9a1c6005" title="Add a word to the pronunciation dictionary.">ps_add_word()</a> with update=TRUE.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dictfile</td><td>Path to dictionary file to load. </td></tr>
    <tr><td class="paramname">fdictfile</td><td>Path to filler dictionary to load, or NULL to keep the existing filler dictionary. </td></tr>
    <tr><td class="paramname">format</td><td>Format of the dictionary file, or NULL to determine automatically (currently unused,should be NULL) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00456">456</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00184">ps_decoder_s::config</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00190">ps_decoder_s::d2p</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00189">ps_decoder_s::dict</a>, <a class="el" href="dict2pid_8c_source.html#l00388">dict2pid_build()</a>, <a class="el" href="dict2pid_8c_source.html#l00507">dict2pid_free()</a>, <a class="el" href="acmod_8h_source.html#l00158">acmod_s::mdef</a>, <a class="el" href="pocketsphinx_8c_source.html#l00313">ps_args()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00456">ps_load_dict()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00194">ps_decoder_s::searches</a>.</p>

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

</div>
</div>
<a class="anchor" id="af4bb6ba47844a135745db428919d9810"></a><!-- doxytag: member="pocketsphinx.h::ps_nbest" ref="af4bb6ba47844a135745db428919d9810" args="(ps_decoder_t *ps, int sf, int ef, char const *ctx1, char const *ctx2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structps__astar__s.html">ps_nbest_t</a>* ps_nbest </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ef</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>ctx1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>ctx2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get an iterator over the best hypotheses, optionally within a selected region of the utterance. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
    <tr><td class="paramname">sf</td><td>Start frame for N-best search (0 for whole utterance) </td></tr>
    <tr><td class="paramname">ef</td><td>End frame for N-best search (-1 for whole utterance) </td></tr>
    <tr><td class="paramname">ctx1</td><td>First word of trigram context (NULL for whole utterance) </td></tr>
    <tr><td class="paramname">ctx2</td><td>First word of trigram context (NULL for whole utterance) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Iterator over N-best hypotheses. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00942">942</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="ps__lattice_8c_source.html#l01659">ps_astar_start()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00936">ps_get_lattice()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00942">ps_nbest()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>.</p>

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

</div>
</div>
<a class="anchor" id="a83379b2da95eebdf5070d29196a9b067"></a><!-- doxytag: member="pocketsphinx.h::ps_nbest_free" ref="a83379b2da95eebdf5070d29196a9b067" args="(ps_nbest_t *nbest)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT void ps_nbest_free </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__astar__s.html">ps_nbest_t</a> *&#160;</td>
          <td class="paramname"><em>nbest</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Finish N-best search early, releasing resources. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">nbest</td><td>N-best iterator. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00976">976</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="ps__lattice_8c_source.html#l01866">ps_astar_finish()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00976">ps_nbest_free()</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00976">ps_nbest_free()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00982">ps_nbest_next()</a>.</p>

</div>
</div>
<a class="anchor" id="a250c5f72d3addd0d0254f3ceeaa17ace"></a><!-- doxytag: member="pocketsphinx.h::ps_nbest_hyp" ref="a250c5f72d3addd0d0254f3ceeaa17ace" args="(ps_nbest_t *nbest, int32 *out_score)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT char const* ps_nbest_hyp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__astar__s.html">ps_nbest_t</a> *&#160;</td>
          <td class="paramname"><em>nbest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32 *&#160;</td>
          <td class="paramname"><em>out_score</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the hypothesis string from an N-best list iterator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">nbest</td><td>N-best iterator. </td></tr>
    <tr><td class="paramname">out_score</td><td>Output: Path score for this hypothesis. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>String containing next best hypothesis. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00995">995</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="ps__lattice_8c_source.html#l01751">ps_astar_hyp()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00995">ps_nbest_hyp()</a>, and <a class="el" href="ps__lattice__internal_8h_source.html#l00156">ps_latpath_s::score</a>.</p>

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

</div>
</div>
<a class="anchor" id="a0942b8c0570009319a5be20ef1b52821"></a><!-- doxytag: member="pocketsphinx.h::ps_nbest_next" ref="a0942b8c0570009319a5be20ef1b52821" args="(ps_nbest_t *nbest)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structps__astar__s.html">ps_nbest_t</a>* ps_nbest_next </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__astar__s.html">ps_nbest_t</a> *&#160;</td>
          <td class="paramname"><em>nbest</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Move an N-best list iterator forward. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">nbest</td><td>N-best iterator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Updated N-best iterator, or NULL if no more hypotheses are available (iterator is freed ni this case). </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00982">982</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="ps__lattice_8c_source.html#l01718">ps_astar_next()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00976">ps_nbest_free()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00982">ps_nbest_next()</a>.</p>

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

</div>
</div>
<a class="anchor" id="a1d2b6fd873d8213bd53a915ff2758785"></a><!-- doxytag: member="pocketsphinx.h::ps_nbest_seg" ref="a1d2b6fd873d8213bd53a915ff2758785" args="(ps_nbest_t *nbest, int32 *out_score)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structps__seg__s.html">ps_seg_t</a>* ps_nbest_seg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__astar__s.html">ps_nbest_t</a> *&#160;</td>
          <td class="paramname"><em>nbest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32 *&#160;</td>
          <td class="paramname"><em>out_score</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the word segmentation from an N-best list iterator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">nbest</td><td>N-best iterator. </td></tr>
    <tr><td class="paramname">out_score</td><td>Output: Path score for this hypothesis. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Iterator over the next best hypothesis. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l01004">1004</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="ps__lattice_8c_source.html#l01839">ps_astar_seg_iter()</a>, <a class="el" href="pocketsphinx_8c_source.html#l01004">ps_nbest_seg()</a>, and <a class="el" href="ps__lattice__internal_8h_source.html#l00156">ps_latpath_s::score</a>.</p>

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

</div>
</div>
<a class="anchor" id="adc0ab735d6460142126bc31a9e9d2ba0"></a><!-- doxytag: member="pocketsphinx.h::ps_process_cep" ref="adc0ab735d6460142126bc31a9e9d2ba0" args="(ps_decoder_t *ps, mfcc_t **data, int n_frames, int no_search, int full_utt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_process_cep </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mfcc_t **&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n_frames</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>no_search</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>Decode acoustic feature data. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
    <tr><td class="paramname">no_search</td><td>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. </td></tr>
    <tr><td class="paramname">full_utt</td><td>If non-zero, this block of data is a full utterance worth of data. This may allow the recognizer to produce more accurate results. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of frames of data searched, or &lt;0 for error. </dd></dl>

</div>
</div>
<a class="anchor" id="a572ad08651b4caae820d178a12c8f95f"></a><!-- doxytag: member="pocketsphinx.h::ps_process_raw" ref="a572ad08651b4caae820d178a12c8f95f" args="(ps_decoder_t *ps, int16 const *data, size_t n_samples, int no_search, int full_utt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_process_raw </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16 const *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>n_samples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>no_search</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>Decode raw audio data. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
    <tr><td class="paramname">no_search</td><td>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. </td></tr>
    <tr><td class="paramname">full_utt</td><td>If non-zero, this block of data is a full utterance worth of data. This may allow the recognizer to produce more accurate results. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of frames of data searched, or &lt;0 for error. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00747">747</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="acmod_8c_source.html#l00620">acmod_process_raw()</a>, <a class="el" href="acmod_8c_source.html#l00421">acmod_set_grow()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00747">ps_process_raw()</a>.</p>

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

</div>
</div>
<a class="anchor" id="a391679e7edb0de1e324aa302ee820287"></a><!-- doxytag: member="pocketsphinx.h::ps_reinit" ref="a391679e7edb0de1e324aa302ee820287" args="(ps_decoder_t *ps, cmd_ln_t *config)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_reinit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">cmd_ln_t *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reinitialize the decoder with updated configuration. </p>
<p>This function allows you to switch the acoustic model, dictionary, or other configuration without creating an entirely new decoding object.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>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.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
    <tr><td class="paramname">config</td><td>An optional new configuration to use. If this is NULL, the previous configuration will be reloaded, with any changes applied. </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="pocketsphinx_8c_source.html#l00193">193</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="acmod_8c_source.html#l00307">acmod_free()</a>, <a class="el" href="acmod_8c_source.html#l00229">acmod_init()</a>, <a class="el" href="acmod_8c_source.html#l00421">acmod_set_grow()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00184">ps_decoder_s::config</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00190">ps_decoder_s::d2p</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00189">ps_decoder_s::dict</a>, <a class="el" href="dict2pid_8c_source.html#l00388">dict2pid_build()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00191">ps_decoder_s::lmath</a>, <a class="el" href="acmod_8h_source.html#l00158">acmod_s::mdef</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00206">ps_decoder_s::mfclogdir</a>, <a class="el" href="ngram__search_8c_source.html#l00139">ngram_search_init()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00204">ps_decoder_s::perf</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00198">ps_decoder_s::phone_loop</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00199">ps_decoder_s::pl_window</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00088">ps_search_s::pls</a>, <a class="el" href="pocketsphinx_8c_source.html#l00193">ps_reinit()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00207">ps_decoder_s::rawlogdir</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00194">ps_decoder_s::searches</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00208">ps_decoder_s::senlogdir</a>.</p>

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

</div>
</div>
<a class="anchor" id="a8d912ce9a5fea61b7b10db1750531c34"></a><!-- doxytag: member="pocketsphinx.h::ps_retain" ref="a8d912ce9a5fea61b7b10db1750531c34" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structps__decoder__s.html">ps_decoder_t</a>* ps_retain </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retain a pointer to the decoder. </p>
<p>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.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to retained decoder. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00319">319</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx_8c_source.html#l00319">ps_retain()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00185">ps_decoder_s::refcount</a>.</p>

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

</div>
</div>
<a class="anchor" id="a5e278377cc57d921591ce95b980760d5"></a><!-- doxytag: member="pocketsphinx.h::ps_save_dict" ref="a5e278377cc57d921591ce95b980760d5" args="(ps_decoder_t *ps, char const *dictfile, char const *format)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_save_dict </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>dictfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Dump the current pronunciation dictionary to a file. </p>
<p>This function dumps the current pronunciation dictionary to a tex</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dictfile</td><td>Path to file where dictionary will be written. </td></tr>
    <tr><td class="paramname">format</td><td>Format of the dictionary file, or NULL for the default (text) format (currently unused, should be NULL) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00511">511</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00189">ps_decoder_s::dict</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00511">ps_save_dict()</a>.</p>

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

</div>
</div>
<a class="anchor" id="a045a044726b816678965514f2ee7d8c7"></a><!-- doxytag: member="pocketsphinx.h::ps_seg_frames" ref="a045a044726b816678965514f2ee7d8c7" args="(ps_seg_t *seg, int *out_sf, int *out_ef)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT void ps_seg_frames </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__seg__s.html">ps_seg_t</a> *&#160;</td>
          <td class="paramname"><em>seg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>out_sf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>out_ef</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get inclusive start and end frames from a segmentation iterator. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>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.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">seg</td><td>Segment iterator. </td></tr>
    <tr><td class="paramname">out_sf</td><td>Output: First frame index in segment. </td></tr>
    <tr><td class="paramname">out_sf</td><td>Output: Last frame index in segment. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00914">914</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00164">ps_seg_s::ef</a>, <a class="el" href="pocketsphinx_8c_source.html#l00914">ps_seg_frames()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00163">ps_seg_s::sf</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00914">ps_seg_frames()</a>.</p>

</div>
</div>
<a class="anchor" id="a2216f6ff53f6bc9c78f285ee3fe0d665"></a><!-- doxytag: member="pocketsphinx.h::ps_seg_iter" ref="a2216f6ff53f6bc9c78f285ee3fe0d665" args="(ps_decoder_t *ps, int32 *out_best_score)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structps__seg__s.html">ps_seg_t</a>* ps_seg_iter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32 *&#160;</td>
          <td class="paramname"><em>out_best_score</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get an iterator over the word segmentation for the best hypothesis. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder. </td></tr>
    <tr><td class="paramname">out_best_score</td><td>Output: path score corresponding to hypothesis. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Iterator over the best hypothesis at this point in decoding. NULL if no hypothesis is available. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00891">891</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00204">ps_decoder_s::perf</a>, <a class="el" href="pocketsphinx_8c_source.html#l00891">ps_seg_iter()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00891">ps_seg_iter()</a>.</p>

</div>
</div>
<a class="anchor" id="ae16ba181f654ffc9bfbbe861e9315f12"></a><!-- doxytag: member="pocketsphinx.h::ps_seg_next" ref="ae16ba181f654ffc9bfbbe861e9315f12" args="(ps_seg_t *seg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structps__seg__s.html">ps_seg_t</a>* ps_seg_next </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__seg__s.html">ps_seg_t</a> *&#160;</td>
          <td class="paramname"><em>seg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the next segment in a word segmentation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">seg</td><td>Segment iterator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Updated iterator with the next segment. NULL at end of utterance (the iterator will be freed in this case). </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00902">902</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx_8c_source.html#l00902">ps_seg_next()</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00902">ps_seg_next()</a>.</p>

</div>
</div>
<a class="anchor" id="adfd45d93c3fc9de6b7be89d5417f6abb"></a><!-- doxytag: member="pocketsphinx.h::ps_seg_prob" ref="adfd45d93c3fc9de6b7be89d5417f6abb" args="(ps_seg_t *seg, int32 *out_ascr, int32 *out_lscr, int32 *out_lback)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int32 ps_seg_prob </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__seg__s.html">ps_seg_t</a> *&#160;</td>
          <td class="paramname"><em>seg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32 *&#160;</td>
          <td class="paramname"><em>out_ascr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32 *&#160;</td>
          <td class="paramname"><em>out_lscr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32 *&#160;</td>
          <td class="paramname"><em>out_lback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get language, acoustic, and posterior probabilities from a segmentation iterator. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>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.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">out_ascr</td><td>Output: acoustic model score for this segment. </td></tr>
    <tr><td class="paramname">out_lscr</td><td>Output: language model score for this segment. </td></tr>
    <tr><td class="paramname">out_lback</td><td>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. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>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(<a class="el" href="pocketsphinx_8h.html#a249cfc383b7d9111a28b550945a606b5" title="Get the log-math computation object for this decoder.">ps_get_logmath()</a>, pprob). </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00921">921</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00165">ps_seg_s::ascr</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00170">ps_seg_s::lback</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00166">ps_seg_s::lscr</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00167">ps_seg_s::prob</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00921">ps_seg_prob()</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00921">ps_seg_prob()</a>.</p>

</div>
</div>
<a class="anchor" id="a8a4fed34b58885627b53e99e90514169"></a><!-- doxytag: member="pocketsphinx.h::ps_seg_word" ref="a8a4fed34b58885627b53e99e90514169" args="(ps_seg_t *seg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT char const* ps_seg_word </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__seg__s.html">ps_seg_t</a> *&#160;</td>
          <td class="paramname"><em>seg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get word string from a segmentation iterator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">seg</td><td>Segment iterator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Read-only string giving string name of this segment. This is only valid until the next call to <a class="el" href="pocketsphinx_8h.html#ae16ba181f654ffc9bfbbe861e9315f12" title="Get the next segment in a word segmentation.">ps_seg_next()</a>. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00908">908</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx_8c_source.html#l00908">ps_seg_word()</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00162">ps_seg_s::word</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00809">ps_end_utt()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00908">ps_seg_word()</a>.</p>

</div>
</div>
<a class="anchor" id="a0b70e54570e21ad3a784b40071818579"></a><!-- doxytag: member="pocketsphinx.h::ps_start_utt" ref="a0b70e54570e21ad3a784b40071818579" args="(ps_decoder_t *ps, char const *uttid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT int ps_start_utt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&#160;</td>
          <td class="paramname"><em>uttid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Start utterance processing. </p>
<p>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.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ps</td><td>Decoder to be started. </td></tr>
    <tr><td class="paramname">uttid</td><td>String uniquely identifying this utterance. If NULL, one will be created. </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="pocketsphinx_8c_source.html#l00619">619</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="acmod_8c_source.html#l00381">acmod_set_mfcfh()</a>, <a class="el" href="acmod_8c_source.html#l00393">acmod_set_rawfh()</a>, <a class="el" href="acmod_8c_source.html#l00370">acmod_set_senfh()</a>, <a class="el" href="acmod_8c_source.html#l00434">acmod_start_utt()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00094">ps_search_s::dag</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00093">ps_search_s::hyp_str</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00095">ps_search_s::last_link</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00206">ps_decoder_s::mfclogdir</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00204">ps_decoder_s::perf</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00198">ps_decoder_s::phone_loop</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00096">ps_search_s::post</a>, <a class="el" href="ps__lattice_8c_source.html#l00688">ps_lattice_free()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00619">ps_start_utt()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00207">ps_decoder_s::rawlogdir</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00208">ps_decoder_s::senlogdir</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00203">ps_decoder_s::uttid</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00202">ps_decoder_s::uttno</a>.</p>

<p>Referenced by <a class="el" href="pocketsphinx_8c_source.html#l00579">ps_decode_raw()</a>, <a class="el" href="pocketsphinx_8c_source.html#l00725">ps_decode_senscr()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00619">ps_start_utt()</a>.</p>

</div>
</div>
<a class="anchor" id="a3aaadef189cda344cd109c3110606aba"></a><!-- doxytag: member="pocketsphinx.h::ps_update_fsgset" ref="a3aaadef189cda344cd109c3110606aba" args="(ps_decoder_t *ps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structfsg__search__s.html">fsg_set_t</a>* ps_update_fsgset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Update the finite-state grammar set object for this decoder. </p>
<p>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.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The current FSG set object for this decoder, or NULL on failure. </dd></dl>

<p>Definition at line <a class="el" href="pocketsphinx_8c_source.html#l00433">433</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00184">ps_decoder_s::config</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00190">ps_decoder_s::d2p</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00189">ps_decoder_s::dict</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00198">ps_decoder_s::phone_loop</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00088">ps_search_s::pls</a>, <a class="el" href="pocketsphinx_8c_source.html#l00433">ps_update_fsgset()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00194">ps_decoder_s::searches</a>.</p>

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

</div>
</div>
<a class="anchor" id="ae00bebeadaa6fc6fa8eb93b450651dc5"></a><!-- doxytag: member="pocketsphinx.h::ps_update_lmset" ref="ae00bebeadaa6fc6fa8eb93b450651dc5" args="(ps_decoder_t *ps, ngram_model_t *lmset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT ngram_model_t* ps_update_lmset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ngram_model_t *&#160;</td>
          <td class="paramname"><em>lmset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Update the language model set object for this decoder. </p>
<p>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).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lmset</td><td>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. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The updated language model set object for this decoder, or NULL on failure. </dd></dl>

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

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00184">ps_decoder_s::config</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00190">ps_decoder_s::d2p</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00189">ps_decoder_s::dict</a>, <a class="el" href="ngram__search_8h_source.html#l00199">ngram_search_s::lmset</a>, <a class="el" href="ngram__search_8c_source.html#l00139">ngram_search_init()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00198">ps_decoder_s::phone_loop</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00088">ps_search_s::pls</a>, <a class="el" href="pocketsphinx_8c_source.html#l00393">ps_update_lmset()</a>, <a class="el" href="pocketsphinx__internal_8h_source.html#l00197">ps_decoder_s::search</a>, and <a class="el" href="pocketsphinx__internal_8h_source.html#l00194">ps_decoder_s::searches</a>.</p>

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

</div>
</div>
<a class="anchor" id="a85e04bcbf5366f1bdad555dbb4d73d5d"></a><!-- doxytag: member="pocketsphinx.h::ps_update_mllr" ref="a85e04bcbf5366f1bdad555dbb4d73d5d" args="(ps_decoder_t *ps, ps_mllr_t *mllr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">POCKETSPHINX_EXPORT <a class="el" href="structps__mllr__s.html">ps_mllr_t</a>* ps_update_mllr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structps__decoder__s.html">ps_decoder_t</a> *&#160;</td>
          <td class="paramname"><em>ps</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 current 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="pocketsphinx_8c_source.html#l00378">378</a> of file <a class="el" href="pocketsphinx_8c_source.html">pocketsphinx.c</a>.</p>

<p>References <a class="el" href="pocketsphinx__internal_8h_source.html#l00188">ps_decoder_s::acmod</a>, <a class="el" href="acmod_8c_source.html#l00345">acmod_update_mllr()</a>, and <a class="el" href="pocketsphinx_8c_source.html#l00378">ps_update_mllr()</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="pocketsphinx_8h.html">pocketsphinx.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>