Menu

Get Lattice in PocketSphinx

Help
Anuj Kumar
2011-06-14
2012-09-22
  • Anuj Kumar

    Anuj Kumar - 2011-06-14

    Hi all,

    Is there a function that can help retrieve the lattice in pocketSphinx-0.7,
    once the decoding has finished?

    Thanks.

     
  • Nickolay V. Shmyrev

    /**

     * Get word lattice.
     *
     * There isn't much you can do with this so far, a public API will
     * appear in the future.
     *
     * @param ps Decoder.
     * @return Word lattice object containing all hypotheses so far.  NULL
     *         if no hypotheses are available.  This pointer is owned by
     *         the decoder and you should not attempt to free it manually.
     *         It is only valid until the next utterance, unless you use
     *         ps_lattice_retain() to retain it.
     */
    POCKETSPHINX_EXPORT
    ps_lattice_t *ps_get_lattice(ps_decoder_t *ps);
    
     

Log in to post a comment.