122 #ifndef __S3_DECODE_H 123 #define __S3_DECODE_H 138 #define S3_DECODE_SUCCESS 0 139 #define S3_DECODE_ERROR_OUT_OF_MEMORY -0x01 140 #define S3_DECODE_ERROR_NULL_POINTER -0x02 141 #define S3_DECODE_ERROR_INVALID_STATE -0x04 142 #define S3_DECODE_ERROR_INTERNAL -0x08 144 #define S3_DECODE_STATE_IDLE 0 145 #define S3_DECODE_STATE_DECODING 1 146 #define S3_DECODE_STATE_FINISHED 2 351 char **_hyp_str,
hyp_t ***_hyp_segs);
S3DECODER_EXPORT void s3_decode_delete_lm(s3_decode_t *_decode, const char *lmname)
S3DECODER_EXPORT void s3_decode_read_lm(s3_decode_t *_decode, const char *lmfile, const char *lmname)
int32 hyp_frame_num
Definition: s3_decode.h:191
The temporary header file for sphinx 3 functions.
kbcore_t * kbcore
Definition: s3_decode.h:161
S3DECODER_EXPORT int s3_decode_hypothesis(s3_decode_t *_decode, char **_uttid, char **_hyp_str, hyp_t ***_hyp_segs)
kb core structures, the structure that stores parameters for s3.X search
Definition: s3_decode.h:151
S3DECODER_EXPORT void s3_decode_close(s3_decode_t *_decode)
S3DECODER_EXPORT void s3_decode_end_utt(s3_decode_t *_decode)
int32 num_frames_entered
Definition: s3_decode.h:176
S3DECODER_EXPORT int s3_decode_process(s3_decode_t *_decode, float32 **_frames, int32 _num_frames)
S3DECODER_EXPORT int s3_decode_begin_utt(s3_decode_t *_decode, char *_uttid)
kb_t kb
Definition: s3_decode.h:156
int32 num_frames_decoded
Definition: s3_decode.h:171
const char * rawext
Definition: s3_decode.h:218
hyp_t ** hyp_segs
Definition: s3_decode.h:203
Size definition of semantically units. Common for both s3 and s3.X decoder.
int32 state
Definition: s3_decode.h:181
The global wrapper structure for all variables in 3.X search. We may want to use it for sphinx 3...
#define S3DECODER_EXPORT
Definition: sphinx3_export.h:15
S3DECODER_EXPORT int s3_decode_init(s3_decode_t *_decode, cmd_ln_t *_config)
int32 phypdump
Definition: s3_decode.h:213
data structure for dag. Adapted from s3_dag.h in s3.5
int32 swap
Definition: s3_decode.h:208
S3DECODER_EXPORT arg_t S3_DECODE_ARG_DEFS[]
int32 phones_skip
Definition: s3_decode.h:166
char * hyp_str
Definition: s3_decode.h:197
char * uttid
Definition: s3_decode.h:186
S3DECODER_EXPORT void s3_decode_set_lm(s3_decode_t *_decode, const char *lmname)
S3DECODER_EXPORT dag_t * s3_decode_word_graph(s3_decode_t *_decode)