qtts.h
Go to the documentation of this file.
1 
44 #ifndef __QTTS_H__
45 #define __QTTS_H__
46 
47 #if !defined(MSPAPI)
48 
49 #if defined(WIN32)
50 
51 #define MSPAPI __stdcall
52 
53 #else
54 
55 #define MSPAPI
56 
57 #endif /* WIN32 */
58 
59 #endif /* MSPAPI */
60 
61 #if __cplusplus
62 
63 extern "C" {
64 
65 #endif /* C++ */
66 
67 #include "msp_types.h"
68 
80 const char* MSPAPI QTTSSessionBegin(const char* params, int* errorCode);
81 
82 typedef const char*(MSPAPI* Proc_QTTSSessionBegin)(const char* params, int* errorCode);
83 
84 #if MSP_WCHAR_SUPPORT
85 const wchar_t* MSPAPI QTTSSessionBeginW(const wchar_t* params, int* errorCode);
86 
87 typedef const wchar_t*(MSPAPI* Proc_QTTSSessionBeginW)(const wchar_t* params, int* errorCode);
88 
89 #endif
90 
103 int MSPAPI QTTSTextPut(const char* sessionID, const char* textString, unsigned int textLen, const char* params);
104 
105 typedef int(MSPAPI* Proc_QTTSTextPut)(const char* sessionID, const char* textString, unsigned int textLen,
106  const char* params);
107 
108 #if MSP_WCHAR_SUPPORT
109 int MSPAPI QTTSTextPutW(const wchar_t* sessionID, const wchar_t* textString, unsigned int textLen,
110  const wchar_t* params);
111 
112 typedef int(MSPAPI* Proc_QTTSTextPutW)(const wchar_t* sessionID, const wchar_t* textString, unsigned int textLen,
113  const wchar_t* params);
114 
115 #endif
116 
130 const void* MSPAPI QTTSAudioGet(const char* sessionID, unsigned int* audioLen, int* synthStatus, int* errorCode);
131 
132 typedef const void*(MSPAPI* Proc_QTTSAudioGet)(const char* sessionID, unsigned int* audioLen, int* synthStatus,
133  int* errorCode);
134 
135 #if MSP_WCHAR_SUPPORT
136 const void* MSPAPI QTTSAudioGetW(const wchar_t* sessionID, unsigned int* audioLen, int* synthStatus, int* errorCode);
137 
138 typedef const void*(MSPAPI* Proc_QTTSAudioGetW)(const wchar_t* sessionID, unsigned int* audioLen, int* synthStatus,
139  int* errorCode);
140 
141 #endif
142 
153 const char* MSPAPI QTTSAudioInfo(const char* sessionID);
154 
155 typedef const char*(MSPAPI* Proc_QTTSAudioInfo)(const char* sessionID);
156 
157 #if MSP_WCHAR_SUPPORT
158 const wchar_t* MSPAPI QTTSAudioInfoW(const wchar_t* sessionID);
159 
160 typedef const wchar_t*(MSPAPI* Proc_QTTSAudioInfoW)(const wchar_t* sessionID);
161 
162 #endif
163 
175 int MSPAPI QTTSSessionEnd(const char* sessionID, const char* hints);
176 typedef int(MSPAPI* Proc_QTTSSessionEnd)(const char* sessionID, const char* hints);
177 #if MSP_WCHAR_SUPPORT
178 int MSPAPI QTTSSessionEndW(const wchar_t* sessionID, const wchar_t* hints);
179 typedef int(MSPAPI* Proc_QTTSSessionEndW)(const wchar_t* sessionID, const wchar_t* hints);
180 #endif
181 
195 int MSPAPI QTTSGetParam(const char* sessionID, const char* paramName, char* paramValue, unsigned int* valueLen);
196 typedef int(MSPAPI* Proc_QTTSGetParam)(const char* sessionID, const char* paramName, char* paramValue,
197  unsigned int* valueLen);
198 #if MSP_WCHAR_SUPPORT
199 int MSPAPI QTTSGetParamW(const wchar_t* sessionID, const wchar_t* paramName, wchar_t* paramValue,
200  unsigned int* valueLen);
201 typedef int(MSPAPI* Proc_QTTSGetParamW)(const wchar_t* sessionID, const wchar_t* paramName, wchar_t* paramValue,
202  unsigned int* valueLen);
203 #endif
204 
217 int MSPAPI QTTSSetParam(const char* sessionID, const char* paramName, const char* paramValue);
218 typedef int(MSPAPI* Proc_QTTSSetParam)(const char* sessionID, const char* paramName, char* paramValue);
219 #if MSP_WCHAR_SUPPORT
220 int MSPAPI QTTSSetParamW(const wchar_t* sessionID, const wchar_t* paramName, wchar_t* paramValue);
221 typedef int(MSPAPI* Proc_QTTSSetParamW)(const wchar_t* sessionID, const wchar_t* paramName, wchar_t* paramValue);
222 #endif
223 
224 typedef void (*tts_result_ntf_handler)(const char* sessionID, const char* audio, int audioLen, int synthStatus, int ced,
225  const char* audioInfo, int audioInfoLen, void* userData);
226 typedef void (*tts_status_ntf_handler)(const char* sessionID, int type, int status, int param1, const void* param2,
227  void* userData);
228 typedef void (*tts_error_ntf_handler)(const char* sessionID, int errorCode, const char* detail, void* userData);
229 int MSPAPI QTTSRegisterNotify(const char* sessionID, tts_result_ntf_handler rsltCb, tts_status_ntf_handler statusCb,
230  tts_error_ntf_handler errCb, void* userData);
231 
232 #if __cplusplus
233 
234 } /* extern "C" */
235 
236 #endif /* C++ */
237 
238 #endif /* __QTTS_H__ */
void(* tts_error_ntf_handler)(const char *sessionID, int errorCode, const char *detail, void *userData)
Definition: qtts.h:228
const char *MSPAPI QTTSSessionBegin(const char *params, int *errorCode)
int(MSPAPI * Proc_QTTSSetParam)(const char *sessionID, const char *paramName, char *paramValue)
Definition: qtts.h:218
void(* tts_status_ntf_handler)(const char *sessionID, int type, int status, int param1, const void *param2, void *userData)
Definition: qtts.h:226
#define MSPAPI
Definition: qtts.h:55
int(MSPAPI * Proc_QTTSGetParam)(const char *sessionID, const char *paramName, char *paramValue, unsigned int *valueLen)
Definition: qtts.h:196
void(* tts_result_ntf_handler)(const char *sessionID, const char *audio, int audioLen, int synthStatus, int ced, const char *audioInfo, int audioInfoLen, void *userData)
Definition: qtts.h:224
const char *(MSPAPI * Proc_QTTSSessionBegin)(const char *params, int *errorCode)
Definition: qtts.h:82
const void *MSPAPI QTTSAudioGet(const char *sessionID, unsigned int *audioLen, int *synthStatus, int *errorCode)
const char *MSPAPI QTTSAudioInfo(const char *sessionID)
int MSPAPI QTTSSessionEnd(const char *sessionID, const char *hints)
int MSPAPI QTTSSetParam(const char *sessionID, const char *paramName, const char *paramValue)
const void *(MSPAPI * Proc_QTTSAudioGet)(const char *sessionID, unsigned int *audioLen, int *synthStatus, int *errorCode)
Definition: qtts.h:132
int MSPAPI QTTSRegisterNotify(const char *sessionID, tts_result_ntf_handler rsltCb, tts_status_ntf_handler statusCb, tts_error_ntf_handler errCb, void *userData)
int(MSPAPI * Proc_QTTSTextPut)(const char *sessionID, const char *textString, unsigned int textLen, const char *params)
Definition: qtts.h:105
int MSPAPI QTTSGetParam(const char *sessionID, const char *paramName, char *paramValue, unsigned int *valueLen)
int(MSPAPI * Proc_QTTSSessionEnd)(const char *sessionID, const char *hints)
Definition: qtts.h:176
const char *(MSPAPI * Proc_QTTSAudioInfo)(const char *sessionID)
Definition: qtts.h:155
int MSPAPI QTTSTextPut(const char *sessionID, const char *textString, unsigned int textLen, const char *params)


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