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

Iterator over language models in a set. More...

#include <pocketsphinx/model.h>

Public Member Functions

POCKETSPHINX_EXPORT ngram_model_set_iter_tngram_model_set_iter_next (ngram_model_set_iter_t *itor)
 
POCKETSPHINX_EXPORT void ngram_model_set_iter_free (ngram_model_set_iter_t *itor)
 
POCKETSPHINX_EXPORT ngram_model_tngram_model_set_iter_model (ngram_model_set_iter_t *itor, char const **lmname)
 

Detailed Description

Iterator over language models in a set.

Member Function Documentation

◆ ngram_model_set_iter_next()

POCKETSPHINX_EXPORT ngram_model_set_iter_t * ngram_model_set_iter_next ( ngram_model_set_iter_t itor)

Move to the next language model in a set.

Returns
iterator pointing to the next language model, or NULL if no models remain.

◆ ngram_model_set_iter_free()

POCKETSPHINX_EXPORT void ngram_model_set_iter_free ( ngram_model_set_iter_t itor)

Finish iteration over a langauge model set.

◆ ngram_model_set_iter_model()

POCKETSPHINX_EXPORT ngram_model_t * ngram_model_set_iter_model ( ngram_model_set_iter_t itor,
char const **  lmname 
)

Get language model and associated name from an iterator.

Parameters
itorthe iterator
lmnameOutput: string name associated with this language model.
Returns
Language model pointed to by this iterator.

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