PocketSphinx
5.0.0
A small speech recognizer
|
Link between DAG nodes. More...
#include <pocketsphinx/lattice.h>
Public Member Functions | |
POCKETSPHINX_EXPORT int | ps_latlink_times (ps_latlink_t *link, int16 *out_sf) |
POCKETSPHINX_EXPORT ps_latnode_t * | ps_latlink_nodes (ps_latlink_t *link, ps_latnode_t **out_src) |
POCKETSPHINX_EXPORT const char * | ps_latlink_word (ps_lattice_t *dag, ps_latlink_t *link) |
POCKETSPHINX_EXPORT const char * | ps_latlink_baseword (ps_lattice_t *dag, ps_latlink_t *link) |
POCKETSPHINX_EXPORT ps_latlink_t * | ps_latlink_pred (ps_latlink_t *link) |
POCKETSPHINX_EXPORT int32 | ps_latlink_prob (ps_lattice_t *dag, ps_latlink_t *link, int32 *out_ascr) |
Link between DAG nodes.
A link corresponds to a single hypothesized instance of a word with a given start and end point.
POCKETSPHINX_EXPORT int ps_latlink_times | ( | ps_latlink_t * | link, |
int16 * | out_sf | ||
) |
Get start and end times from a lattice link.
link | Link inquired about. |
out_sf | Output: (optional) start frame of this link. |
POCKETSPHINX_EXPORT ps_latnode_t * ps_latlink_nodes | ( | ps_latlink_t * | link, |
ps_latnode_t ** | out_src | ||
) |
Get destination and source nodes from a lattice link
link | Link inquired about |
out_src | Output: (optional) source node. |
POCKETSPHINX_EXPORT const char * ps_latlink_word | ( | ps_lattice_t * | dag, |
ps_latlink_t * | link | ||
) |
Get word string from a lattice link.
dag | Lattice to which node belongs. |
link | Link inquired about |
POCKETSPHINX_EXPORT const char * ps_latlink_baseword | ( | ps_lattice_t * | dag, |
ps_latlink_t * | link | ||
) |
Get base word string from a lattice link.
dag | Lattice to which node belongs. |
link | Link inquired about |
POCKETSPHINX_EXPORT ps_latlink_t * ps_latlink_pred | ( | ps_latlink_t * | link | ) |
Get predecessor link in best path.
link | Link inquired about |
POCKETSPHINX_EXPORT int32 ps_latlink_prob | ( | ps_lattice_t * | dag, |
ps_latlink_t * | link, | ||
int32 * | out_ascr | ||
) |
Get acoustic score and posterior probability from a lattice link.
dag | Lattice to which node belongs. |
link | Link inquired about |
out_ascr | Output: (optional) acoustic score. |