1 #ifndef __SRS_POCKET_SPHINX_PLUGIN_H__
2 #define __SRS_POCKET_SPHINX_PLUGIN_H__
7 #include "srs/daemon/plugin.h"
8 #include "srs/daemon/recognizer.h"
10 typedef enum utterance_processor_e utterance_processor_t;
12 typedef struct context_s context_t;
13 typedef struct plugin_s plugin_t;
14 typedef struct options_s options_t;
15 typedef struct options_decoder_s options_decoder_t;
16 typedef struct context_s context_t;
17 typedef struct decoder_set_s decoder_set_t;
18 typedef struct decoder_s decoder_t;
19 typedef struct utternace_s utterance_t;
20 typedef struct candidate_s candidate_t;
21 typedef struct word_s word_t;
22 typedef struct filter_buf_s filter_buf_t;
23 typedef struct input_buf_s input_buf_t;
24 typedef struct pulse_interface_s pulse_interface_t;
26 enum utterance_processor_e {
27 UTTERANCE_PROCESSOR_UNKNOWN = 0,
28 UTTERANCE_PROCESSOR_ACOUSTIC,
29 UTTERANCE_PROCESSOR_FSG,
35 decoder_set_t *decset;
36 filter_buf_t *filtbuf;
38 pulse_interface_t *pulseif;
43 int32_t plugin_utterance_handler(context_t *ctx, srs_srec_utterance_t *utt);
44 mrp_mainloop_t *plugin_get_mainloop(plugin_t *plugin);
46 #endif /* __SRS_POCKET_SPHINX_PLUGIN_H__ */
51 * indent-tabs-mode: nil