PocketSphinx
5.0.0
A small speech recognizer
|
Iterator over entries in an alignment. More...
#include <pocketsphinx/alignment.h>
Public Member Functions | |
const POCKETSPHINX_EXPORT char * | ps_alignment_iter_name (ps_alignment_iter_t *itor) |
POCKETSPHINX_EXPORT int | ps_alignment_iter_seg (ps_alignment_iter_t *itor, int *start, int *duration) |
POCKETSPHINX_EXPORT ps_alignment_iter_t * | ps_alignment_iter_next (ps_alignment_iter_t *itor) |
POCKETSPHINX_EXPORT ps_alignment_iter_t * | ps_alignment_iter_children (ps_alignment_iter_t *itor) |
POCKETSPHINX_EXPORT int | ps_alignment_iter_free (ps_alignment_iter_t *itor) |
Iterator over entries in an alignment.
const POCKETSPHINX_EXPORT char * ps_alignment_iter_name | ( | ps_alignment_iter_t * | itor | ) |
Get the human-readable name of the current segment for an alignment.
POCKETSPHINX_EXPORT int ps_alignment_iter_seg | ( | ps_alignment_iter_t * | itor, |
int * | start, | ||
int * | duration | ||
) |
Get the timing and score information for the current segment of an aligment.
POCKETSPHINX_EXPORT ps_alignment_iter_t * ps_alignment_iter_next | ( | ps_alignment_iter_t * | itor | ) |
Move an alignment iterator forward.
If the end of the alignment is reached, this will free the iterator and return NULL.
POCKETSPHINX_EXPORT ps_alignment_iter_t * ps_alignment_iter_children | ( | ps_alignment_iter_t * | itor | ) |
Iterate over the children of the current alignment entry.
If there are no child nodes, NULL is returned.
POCKETSPHINX_EXPORT int ps_alignment_iter_free | ( | ps_alignment_iter_t * | itor | ) |
Release an iterator before completing all iterations.