PocketSphinx
5.0.0
A small speech recognizer
|
Segmentation iterator object. More...
#include <pocketsphinx.h>
Public Member Functions | |
POCKETSPHINX_EXPORT ps_seg_t * | ps_seg_next (ps_seg_t *seg) |
POCKETSPHINX_EXPORT const char * | ps_seg_word (ps_seg_t *seg) |
POCKETSPHINX_EXPORT void | ps_seg_frames (ps_seg_t *seg, int *out_sf, int *out_ef) |
POCKETSPHINX_EXPORT int32 | ps_seg_prob (ps_seg_t *seg, int32 *out_ascr, int32 *out_lscr, int32 *out_lback) |
POCKETSPHINX_EXPORT void | ps_seg_free (ps_seg_t *seg) |
Segmentation iterator object.
Get the next segment in a word segmentation.
seg | Segment iterator. |
POCKETSPHINX_EXPORT const char * ps_seg_word | ( | ps_seg_t * | seg | ) |
Get word string from a segmentation iterator.
seg | Segment iterator. |
POCKETSPHINX_EXPORT void ps_seg_frames | ( | ps_seg_t * | seg, |
int * | out_sf, | ||
int * | out_ef | ||
) |
Get inclusive start and end frames from a segmentation iterator.
seg | Segment iterator. |
out_sf | Output: First frame index in segment. |
out_ef | Output: Last frame index in segment. |
POCKETSPHINX_EXPORT int32 ps_seg_prob | ( | ps_seg_t * | seg, |
int32 * | out_ascr, | ||
int32 * | out_lscr, | ||
int32 * | out_lback | ||
) |
Get language, acoustic, and posterior probabilities from a segmentation iterator.
out_ascr | Output: acoustic model score for this segment. |
out_lscr | Output: language model score for this segment. |
out_lback | Output: language model backoff mode for this segment (i.e. the number of words used in calculating lscr). This field is, of course, only meaningful for N-Gram models. |
POCKETSPHINX_EXPORT void ps_seg_free | ( | ps_seg_t * | seg | ) |
Finish iterating over a word segmentation early, freeing resources.