灵云SDK开发手册(C API)  5.2
 全部 结构体 函数 变量 类型定义 枚举 枚举值  
hci_nlu.h
1 
6 #ifndef __HCI_NLU_HEADER__
7 #define __HCI_NLU_HEADER__
8 
9 #include "hci_sys.h"
10 
11 #ifdef __cplusplus
12 extern "C"
13 {
14 #endif
15 
17  /* @{ */
18 
19 
21  /* @{ */
22 
26  #define NLU_MODULE "HCI_NLU"
27 
31  typedef struct _tag_NLU_RECOG_RESULT_ITEM
32  {
34  char * pszResult;
35 
37 
41  typedef struct _tag_NLU_RECOG_RESULT
42  {
47 
49 
53  typedef struct _tag_NLU_RESPONSE_RESULT
54  {
56  char * pszResult;
57 
59 
60 
61  /* @} */
63  /* @{ */
64 
124  HCI_ERR_CODE HCIAPI hci_nlu_init(
125  _MUST_ _IN_ const char * pszConfig
126  );
127 
182  _MUST_ _IN_ const char * pszConfig,
183  _MUST_ _OUT_ int * pnSessionId
184  );
185 
276  _MUST_ _IN_ int nSessionId,
277  _MUST_ _IN_ char * pvText,
278  _OPT_ _IN_ const char * pszConfig,
279  _MUST_ _OUT_ NLU_RECOG_RESULT* psNluRecogResult
280  );
281 
294  _MUST_ _IN_ int nSessionId
295  );
296 
307  HCI_ERR_CODE HCIAPI hci_nlu_release();
308 
320  _MUST_ _IN_ NLU_RECOG_RESULT* psNluRecogResult
321  );
322 
323  /* @} */
324  /* @} */
326 
327 #ifdef __cplusplus
328 };
329 #endif
330 
331 
332 
333 #endif