qise.h
Go to the documentation of this file.
1 
59 #ifndef __MSP_ISE_H__
60 
61 #define __MSP_ISE_H__
62 
63 #if __cplusplus
64 
65 extern "C" {
66 
67 #endif /* C++ */
68 
69 #include "msp_types.h"
70 
91 /*int MSPAPI QISEInit(const char* configs);
92 
93 typedef int (MSPAPI *Proc_QISEInit)(const char* configs);
94 
95 #if MSP_WCHAR_SUPPORT
96 
97 int MSPAPI QISEInitW(const wchar_t* configs);
98 
99 typedef int (MSPAPI *Proc_QISEInitW)(const wchar_t* configs);
100 
101 #endif*/
102 
127 const char* MSPAPI QISESessionBegin(const char* params, const char* userModelId, int* errorCode);
128 
129 typedef const char*(MSPAPI* Proc_QISESessionBegin)(const char* params, const char* userModelID, int* errorCode);
130 
131 #if MSP_WCHAR_SUPPORT
132 
133 const wchar_t* MSPAPI QISESessionBeginW(const wchar_t* params, const wchar_t* userModelID, int* errorCode);
134 
135 typedef const wchar_t*(MSPAPI* Proc_QISESessionBeginW)(const wchar_t* params, const wchar_t* userModelID,
136  int* errorCode);
137 
138 #endif
139 
166 int MSPAPI QISETextPut(const char* sessionID, const char* textString, unsigned int textLen, const char* params);
167 
168 typedef int(MSPAPI* Proc_QISETextPut)(const char* sessionID, const char* textString, unsigned int textLen,
169  const char* params);
170 
171 #if MSP_WCHAR_SUPPORT
172 
173 int MSPAPI QISETextPutW(const wchar_t* sessionID, const wchar_t* textString, unsigned int textLen,
174  const wchar_t* params);
175 
176 typedef int(MSPAPI* Proc_QISETextPutW)(const wchar_t* sessionID, const wchar_t* textString, unsigned int textLen,
177  const wchar_t* params);
178 
179 #endif
180 
212 int MSPAPI QISEAudioWrite(const char* sessionID, const void* waveData, unsigned int waveLen, int audioStatus,
213  int* epStatus, int* Status);
214 
215 typedef int(MSPAPI* Proc_QISEAudioWrite)(const char* sessionID, const void* waveData, unsigned int waveLen,
216  int audioStatus, int* epStatus, int* recogStatus);
217 
218 #if MSP_WCHAR_SUPPORT
219 
220 int MSPAPI QISEAudioWriteW(const wchar_t* sessionID, const void* waveData, unsigned int waveLen, int audioStatus,
221  int* epStatus, int* evlStatus);
222 
223 typedef int(MSPAPI* Proc_QISEAudioWriteW)(const wchar_t* sessionID, const void* waveData, unsigned int waveLen,
224  int audioStatus, int* epStatus, int* evlStatus);
225 
226 #endif
227 
254 const char* MSPAPI QISEGetResult(const char* sessionID, unsigned int* rsltLen, int* rsltStatus, int* errorCode);
255 
256 typedef const char*(MSPAPI* Proc_QISEGetResult)(const char* sessionID, unsigned int* rsltLen, int* rsltStatus,
257  int* errorCode);
258 
259 #if MSP_WCHAR_SUPPORT
260 
261 const wchar_t* MSPAPI QISEGetResultW(const wchar_t* sessionID, int* rsltLen, unsigned int* rsltStatus, int* errorCode);
262 
263 typedef const wchar_t*(MSPAPI* Proc_QISEGetResultW)(const wchar_t* sessionID, unsigned int* rsltLen, int* rsltStatus,
264  int* errorCode);
265 
266 #endif
267 
288 const char* MSPAPI QISEResultInfo(const char* sessionID, int* errorCode);
289 
290 typedef const char*(MSPAPI* Proc_QISEResultInfo)(const char* sessionID, int* errorCode);
291 
292 #if MSP_WCHAR_SUPPORT
293 
294 const wchar_t* MSPAPI QISEResultInfoW(const wchar_t* sessionID, int* errorCode);
295 
296 typedef const wchar_t*(MSPAPI* Proc_QISEResultInfoW)(const wchar_t* sessionID, int* errorCode);
297 
298 #endif
299 
322 int MSPAPI QISESessionEnd(const char* sessionID, const char* hints);
323 
324 typedef int(MSPAPI* Proc_QISESessionEnd)(const char* sessionID, const char* hints);
325 
326 #if MSP_WCHAR_SUPPORT
327 
328 int MSPAPI QISESessionEndW(const wchar_t* sessionID, const wchar_t* hints);
329 
330 typedef int(MSPAPI* Proc_QISESessionEndW)(const wchar_t* sessionID, const wchar_t* hints);
331 
332 #endif
333 
360 int MSPAPI QISEGetParam(const char* sessionID, const char* paramName, char* paramValue, unsigned int* valueLen);
361 
362 typedef int(MSPAPI* Proc_QISEGetParam)(const char* sessionID, const char* paramName, char* paramValue,
363  unsigned int* valueLen);
364 
365 #if MSP_WCHAR_SUPPORT
366 
367 int MSPAPI QISEGetParamW(const wchar_t* sessionID, const wchar_t* paramName, wchar_t* paramValue,
368  unsigned int* valueLen);
369 
370 typedef int(MSPAPI* Proc_QISEGetParamW)(const wchar_t* sessionID, const wchar_t* paramName, wchar_t* paramValue,
371  unsigned int* valueLen);
372 
373 #endif
374 
375 /*
376 
377 //
378 
379 // typedef void ( MSPAPI *recog_result_ntf_handler)( const char *sessionID, const char *result, int resultLen, int
380 resultStatus, void *userData );
381 
382 // typedef void ( MSPAPI *status_ntf_handler)( const char *sessionID, int type, int status, const void *param1, const
383 void *param2, void *userData);
384 
385 // typedef void ( MSPAPI *error_ntf_handler)(const char *sessionID, int errorCode, const char *detail, void *userData);
386 
387 // int MSPAPI QISRRegisterNotify(const char *sessionID, recog_result_ntf_handler rsltCb, status_ntf_handler statusCb,
388 error_ntf_handler errCb, void *userData);
389 
390 */
391 
392 #if __cplusplus
393 
394 } /* extern "C" */
395 
396 #endif /* C++ */
397 
398 #endif /* __MSP_ISE_H__ */
const char *MSPAPI QISEResultInfo(const char *sessionID, int *errorCode)
#define MSPAPI
Definition: msp_types.h:8
int(MSPAPI * Proc_QISEGetParam)(const char *sessionID, const char *paramName, char *paramValue, unsigned int *valueLen)
Definition: qise.h:362
const char *(MSPAPI * Proc_QISESessionBegin)(const char *params, const char *userModelID, int *errorCode)
Definition: qise.h:129
int MSPAPI QISESessionEnd(const char *sessionID, const char *hints)
int(MSPAPI * Proc_QISETextPut)(const char *sessionID, const char *textString, unsigned int textLen, const char *params)
Definition: qise.h:168
const char *MSPAPI QISESessionBegin(const char *params, const char *userModelId, int *errorCode)
int(MSPAPI * Proc_QISEAudioWrite)(const char *sessionID, const void *waveData, unsigned int waveLen, int audioStatus, int *epStatus, int *recogStatus)
Definition: qise.h:215
const char *(MSPAPI * Proc_QISEResultInfo)(const char *sessionID, int *errorCode)
Definition: qise.h:290
const char *MSPAPI QISEGetResult(const char *sessionID, unsigned int *rsltLen, int *rsltStatus, int *errorCode)
int MSPAPI QISEAudioWrite(const char *sessionID, const void *waveData, unsigned int waveLen, int audioStatus, int *epStatus, int *Status)
int MSPAPI QISETextPut(const char *sessionID, const char *textString, unsigned int textLen, const char *params)
const char *(MSPAPI * Proc_QISEGetResult)(const char *sessionID, unsigned int *rsltLen, int *rsltStatus, int *errorCode)
Definition: qise.h:256
int(MSPAPI * Proc_QISESessionEnd)(const char *sessionID, const char *hints)
Definition: qise.h:324
int MSPAPI QISEGetParam(const char *sessionID, const char *paramName, char *paramValue, unsigned int *valueLen)


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:53