52 const wchar_t*
MSPAPI QISRSessionBeginW(
const wchar_t* grammarList,
const wchar_t* params,
int* result);
53 typedef const wchar_t*(
MSPAPI* Proc_QISRSessionBeginW)(
const wchar_t* grammarList,
const wchar_t* params,
int* result);
71 int MSPAPI QISRAudioWrite(
const char* sessionID,
const void* waveData,
unsigned int waveLen,
int audioStatus,
72 int* epStatus,
int* recogStatus);
74 int audioStatus,
int* epStatus,
int* recogStatus);
76 int MSPAPI QISRAudioWriteW(
const wchar_t* sessionID,
const void* waveData,
unsigned int waveLen,
int audioStatus,
77 int* epStatus,
int* recogStatus);
78 typedef int(
MSPAPI* Proc_QISRAudioWriteW)(
const wchar_t* sessionID,
const void* waveData,
unsigned int waveLen,
79 int audioStatus,
int* epStatus,
int* recogStatus);
95 const char*
MSPAPI QISRGetResult(
const char* sessionID,
int* rsltStatus,
int waitTime,
int* errorCode);
98 const wchar_t*
MSPAPI QISRGetResultW(
const wchar_t* sessionID,
int* rsltStatus,
int waitTime,
int* errorCode);
99 typedef const wchar_t*(
MSPAPI* Proc_QISRGetResultW)(
const wchar_t* sessionID,
int* rsltStatus,
int waitTime,
119 int waitTime,
int* errorCode);
120 #if MSP_WCHAR_SUPPORT 121 const wchar_t*
MSPAPI QISRGetBinaryResultW(
const wchar_t* sessionID,
unsigned int* rsltLen,
int* rsltStatus,
122 int waitTime,
int* errorCode);
123 typedef const wchar_t*(
MSPAPI* Proc_QISRGetBinaryResultW)(
const wchar_t* sessionID,
unsigned int* rsltLen,
124 int* rsltStatus,
int waitTime,
int* errorCode);
140 #if MSP_WCHAR_SUPPORT 141 int MSPAPI QISRSessionEndW(
const wchar_t* sessionID,
const wchar_t* hints);
142 typedef int(
MSPAPI* Proc_QISRSessionEndW)(
const wchar_t* sessionID,
const wchar_t* hints);
158 int MSPAPI QISRGetParam(
const char* sessionID,
const char* paramName,
char* paramValue,
unsigned int* valueLen);
160 unsigned int* valueLen);
161 #if MSP_WCHAR_SUPPORT 162 int MSPAPI QISRGetParamW(
const wchar_t* sessionID,
const wchar_t* paramName,
wchar_t* paramValue,
163 unsigned int* valueLen);
164 typedef int(
MSPAPI* Proc_QISRGetParamW)(
const wchar_t* sessionID,
const wchar_t* paramName,
wchar_t* paramValue,
165 unsigned int* valueLen);
181 int MSPAPI QISRSetParam(
const char* sessionID,
const char* paramName,
const char* paramValue);
183 #if MSP_WCHAR_SUPPORT 184 int MSPAPI QISRSetParamW(
const wchar_t* sessionID,
const wchar_t* paramName,
const wchar_t* paramValue);
185 typedef int(
MSPAPI* Proc_QISRSetParamW)(
const wchar_t* sessionID,
const wchar_t* paramName,
const wchar_t* paramValue);
200 int MSPAPI QISRBuildGrammar(
const char* grammarType,
const char* grammarContent,
unsigned int grammarLength,
203 unsigned int grammarLength,
const char* params,
GrammarCallBack callback,
205 #if MSP_WCHAR_SUPPORT 206 int MSPAPI QISRBuildGrammarW(
const wchar_t* grmmarType,
const wchar_t* grammarContent,
unsigned int grammarLength,
208 typedef int(
MSPAPI* Proc_QISRBuildGrammarW)(
const wchar_t* grmmarType,
const wchar_t* grammarContent,
209 unsigned int grammarLength,
const wchar_t* params,
GrammarCallBack callback,
216 unsigned int lexiconLength,
const char* params,
LexiconCallBack callback,
218 #if MSP_WCHAR_SUPPORT 219 int MSPAPI QISRUpdateLexiconW(
const wchar_t* lexiconName,
const wchar_t* lexiconContent,
unsigned int lexiconLength,
221 typedef int(
MSPAPI Proc_QISRUpdateLexiconW)(
const wchar_t* lexiconName,
const wchar_t* lexiconContent,
222 unsigned int lexiconLength,
const wchar_t* params,
LexiconCallBack callback,
int MSPAPI QISRRegisterNotify(const char *sessionID, recog_result_ntf_handler rsltCb, recog_status_ntf_handler statusCb, recog_error_ntf_handler errCb, void *userData)
const char *MSPAPI QISRGetBinaryResult(const char *sessionID, unsigned int *rsltLen, int *rsltStatus, int waitTime, int *errorCode)
int MSPAPI QISRSessionEnd(const char *sessionID, const char *hints)
int(MSPAPI * Proc_QISRSetParam)(const char *sessionID, const char *paramName, const char *paramValue)
int(MSPAPI * Proc_QISRBuildGrammar)(const char *grammarType, const char *grammarContent, unsigned int grammarLength, const char *params, GrammarCallBack callback, void *userData)
void(* recog_status_ntf_handler)(const char *sessionID, int type, int status, int param1, const void *param2, void *userData)
int(MSPAPI * Proc_QISRSessionEnd)(const char *sessionID, const char *hints)
const char *MSPAPI QISRSessionBegin(const char *grammarList, const char *params, int *errorCode)
int MSPAPI QISRBuildGrammar(const char *grammarType, const char *grammarContent, unsigned int grammarLength, const char *params, GrammarCallBack callback, void *userData)
const char *(MSPAPI * Proc_QISRGetBinaryResult)(const char *sessionID, unsigned int *rsltLen, int *rsltStatus, int waitTime, int *errorCode)
int(* UserCallBack)(int, const char *, void *)
int(* GrammarCallBack)(int, const char *, void *)
int(MSPAPI * Proc_QISRGetParam)(const char *sessionID, const char *paramName, char *paramValue, unsigned int *valueLen)
int MSPAPI QISRUpdateLexicon(const char *lexiconName, const char *lexiconContent, unsigned int lexiconLength, const char *params, LexiconCallBack callback, void *userData)
const char *(MSPAPI * Proc_QISRGetResult)(const char *sessionID, int *rsltStatus, int waitTime, int *errorCode)
int(* LexiconCallBack)(int, const char *, void *)
int(MSPAPI * Proc_QISRUpdataLexicon)(const char *lexiconName, const char *lexiconContent, unsigned int lexiconLength, const char *params, LexiconCallBack callback, void *userData)
void(* recog_result_ntf_handler)(const char *sessionID, const char *result, int resultLen, int resultStatus, void *userData)
const char *(MSPAPI * Proc_QISRSessionBegin)(const char *grammarList, const char *params, int *result)
const char *MSPAPI QISRGetResult(const char *sessionID, int *rsltStatus, int waitTime, int *errorCode)
int MSPAPI QISRAudioWrite(const char *sessionID, const void *waveData, unsigned int waveLen, int audioStatus, int *epStatus, int *recogStatus)
void(* recog_error_ntf_handler)(const char *sessionID, int errorCode, const char *detail, void *userData)
int MSPAPI QISRGetParam(const char *sessionID, const char *paramName, char *paramValue, unsigned int *valueLen)
int(MSPAPI * Proc_QISRAudioWrite)(const char *sessionID, const void *waveData, unsigned int waveLen, int audioStatus, int *epStatus, int *recogStatus)
int MSPAPI QISRSetParam(const char *sessionID, const char *paramName, const char *paramValue)