PocketSphinx  5.0.0
A small speech recognizer
Public Member Functions | List of all members
ps_nbest_t Struct Reference

N-best hypothesis iterator object. More...

#include <pocketsphinx.h>

Public Member Functions

POCKETSPHINX_EXPORT ps_nbest_tps_nbest_next (ps_nbest_t *nbest)
 
POCKETSPHINX_EXPORT const char * ps_nbest_hyp (ps_nbest_t *nbest, int32 *out_score)
 
POCKETSPHINX_EXPORT ps_seg_tps_nbest_seg (ps_nbest_t *nbest)
 
POCKETSPHINX_EXPORT void ps_nbest_free (ps_nbest_t *nbest)
 

Detailed Description

N-best hypothesis iterator object.

Member Function Documentation

◆ ps_nbest_next()

POCKETSPHINX_EXPORT ps_nbest_t * ps_nbest_next ( ps_nbest_t nbest)

Move an N-best list iterator forward.

Parameters
nbestN-best iterator.
Returns
Updated N-best iterator, or NULL if no more hypotheses are available (iterator is freed ni this case).

◆ ps_nbest_hyp()

POCKETSPHINX_EXPORT const char * ps_nbest_hyp ( ps_nbest_t nbest,
int32 *  out_score 
)

Get the hypothesis string from an N-best list iterator.

Parameters
nbestN-best iterator.
out_scoreOutput: Path score for this hypothesis.
Returns
String containing next best hypothesis. Note that this pointer is only valid for the current iteration.

◆ ps_nbest_seg()

POCKETSPHINX_EXPORT ps_seg_t * ps_nbest_seg ( ps_nbest_t nbest)

Get the word segmentation from an N-best list iterator.

Parameters
nbestN-best iterator.
Returns
Iterator over the next best hypothesis.

◆ ps_nbest_free()

POCKETSPHINX_EXPORT void ps_nbest_free ( ps_nbest_t nbest)

Finish N-best search early, releasing resources.

Parameters
nbestN-best iterator.

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