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

Iterator over DAG nodes. More...

#include <pocketsphinx/lattice.h>

Public Member Functions

POCKETSPHINX_EXPORT ps_latnode_iter_tps_latnode_iter_next (ps_latnode_iter_t *itor)
 
POCKETSPHINX_EXPORT void ps_latnode_iter_free (ps_latnode_iter_t *itor)
 
POCKETSPHINX_EXPORT ps_latnode_tps_latnode_iter_node (ps_latnode_iter_t *itor)
 
POCKETSPHINX_EXPORT int ps_latnode_times (ps_latnode_t *node, int16 *out_fef, int16 *out_lef)
 

Detailed Description

Iterator over DAG nodes.

Member Function Documentation

◆ ps_latnode_iter_next()

POCKETSPHINX_EXPORT ps_latnode_iter_t * ps_latnode_iter_next ( ps_latnode_iter_t itor)

Move to next node in iteration.

Parameters
itorNode iterator.
Returns
Updated node iterator, or NULL if finished

◆ ps_latnode_iter_free()

POCKETSPHINX_EXPORT void ps_latnode_iter_free ( ps_latnode_iter_t itor)

Stop iterating over nodes.

Parameters
itorNode iterator.

◆ ps_latnode_iter_node()

POCKETSPHINX_EXPORT ps_latnode_t * ps_latnode_iter_node ( ps_latnode_iter_t itor)

Get node from iterator.

◆ ps_latnode_times()

POCKETSPHINX_EXPORT int ps_latnode_times ( ps_latnode_t node,
int16 *  out_fef,
int16 *  out_lef 
)

Get start and end time range for a node.

Parameters
nodeNode inquired about.
out_fefOutput: End frame of first exit from this node.
out_lefOutput: End frame of last exit from this node.
Returns
Start frame for all edges exiting this node.

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