Documentation ¶
Index ¶
- func GetTTSWavFile(ttsParmas, speedTxt, desPath string) error
- func Login(loginParams string) error
- func Logout() error
- func MSPDownloadData(params string) ([]byte, error)
- func MSPGetParam(paramName string) (string, error)
- func MSPGetVersion(verName string) (string, error)
- func MSPLogin(params string) error
- func MSPLogout() error
- func MSPNlpSchCancel(sessionID string, hints string) error
- func MSPNlpSearch(params string, text string, callback NLPSearchCB) (string, []byte, error)
- func MSPRegisterNotify(statusCb MSP_STATUS_NTF_HANDLER) ([]byte, error)
- func MSPSearch(params string, text string) (string, error)
- func MSPSetParam(paramName string, paramValue string) error
- func MSPUploadData(dataName string, data []byte, params string) (string, error)
- func QTTSAudioGet(sessionID string) ([]byte, int, error)
- func QTTSAudioInfo(sessionID string) string
- func QTTSGetParam(sessionID string, paramName string) (string, error)
- func QTTSSessionBegin(params string) (string, error)
- func QTTSSessionEnd(sessionID string, hints string) error
- func QTTSSetParam(sessionID string, paramName string, paramValue string) error
- func QTTSTextPut(sessionID string, textString string, params string) error
- func TTSData(ttsParmas, speedTxt string) ([]byte, error)
- func TTSWavData(ttsParmas, speedTxt string) ([]byte, error)
- type MSP_STATUS_NTF_HANDLER
- type NLPSearchCB
- type TTSConf
- type TTSLoginConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MSPDownloadData ¶
const void* MSPAPI MSPDownloadData(const char* params, unsigned int* dataLen, int* errorCode);
func MSPGetParam ¶
int MSPAPI MSPGetParam( const char *paramName, char *paramValue, unsigned int *valueLen );
func MSPGetVersion ¶
const char* MSPAPI MSPGetVersion(const char *verName, int *errorCode);
func MSPNlpSchCancel ¶
int MSPAPI MSPNlpSchCancel(const char *sessionID, const char *hints);
func MSPNlpSearch ¶
const char* MSPAPI MSPNlpSearch(const char* params, const char* text, unsigned int textLen, int *errorCode, NLPSearchCB callback, void *userData);
func MSPRegisterNotify ¶
func MSPRegisterNotify(statusCb MSP_STATUS_NTF_HANDLER) ([]byte, error)
int MSPAPI MSPRegisterNotify( msp_status_ntf_handler statusCb, void *userData );
func MSPSearch ¶
const char* MSPAPI MSPSearch(const char* params, const char* text, unsigned int* dataLen, int* errorCode);
func MSPSetParam ¶
int MSPAPI MSPSetParam( const char* paramName, const char* paramValue );
func MSPUploadData ¶
const char* MSPAPI MSPUploadData(const char* dataName, void* data, unsigned int dataLen, const char* params, int* errorCode);
func QTTSAudioGet ¶
const void* MSPAPI QTTSAudioGet(const char* sessionID, unsigned int* audioLen, int* synthStatus, int* errorCode);
func QTTSAudioInfo ¶
const char* MSPAPI QTTSAudioInfo(const char* sessionID);
func QTTSGetParam ¶
int MSPAPI QTTSGetParam(const char* sessionID, const char* paramName, char* paramValue, unsigned int* valueLen);
func QTTSSessionBegin ¶
const char* MSPAPI QTTSSessionBegin(const char* params, int* errorCode);
func QTTSSessionEnd ¶
int MSPAPI QTTSSessionEnd(const char* sessionID, const char* hints);
func QTTSSetParam ¶
int MSPAPI QTTSSetParam(const char *sessionID, const char *paramName, const char *paramValue);
func QTTSTextPut ¶
int MSPAPI QTTSTextPut(const char* sessionID, const char* textString, unsigned int textLen, const char* params);
Types ¶
type MSP_STATUS_NTF_HANDLER ¶
type MSP_STATUS_NTF_HANDLER C.msp_status_ntf_handler
type NLPSearchCB ¶
type NLPSearchCB C.NLPSearchCB
type TTSConf ¶
type TTSConf struct { EngineType string `json:"engine_type"` VoiceName string `json:"voice_name"` TextEncoding string `json:"text_encoding"` TtsResPath string `json:"tts_res_path"` SampleRate int `json:"sample_rate"` Speed int `json:"speed"` Volume int `json:"volume"` Pitch int `json:"pitch"` Rdn int `json:"rdn"` Rcn int `json:"rcn"` }
func (TTSConf) ToTTSParams ¶
type TTSLoginConf ¶
func (TTSLoginConf) ToTTSLoginParams ¶
func (ttsLoginConf TTSLoginConf) ToTTSLoginParams() string