Versions in this module Expand all Collapse all v0 v0.3.2-alpha Feb 26, 2018 v0.3.1-beta.1 Jan 23, 2018 v0.3.1-alpha.1 Jan 20, 2018 v0.2.0 Jan 15, 2018 Changes in this version + const GB + const PB + const TB + type ASRParam func(params *ASRParams) + func Channel(c int) ASRParam + func Format(fmt string) ASRParam + func Language(lang string) ASRParam + func Rate(rate int) ASRParam type ASRParams + Language string + Length int + type TTSParam func(params *TTSParams) + func Person(per int) TTSParam + func Pitch(pit int) TTSParam + func Speed(spd int) TTSParam + func Volume(vol int) TTSParam + type TTSParams struct + ClientType int + Cuid string + Language string + Person int + Pitch int + Speed int + Text string + Token string + Volume int v0.1.0 Dec 1, 2017 Changes in this version + const ASR_URL + const B + const KB + const MB + const TTS_URL + var ErrNoTTSConfig = errors.New(...) + var ErrTextTooLong = errors.New("The input string is too long") + type ASRParams struct + Channel int + Cuid string + Format string + Lan string + Len int + Rate int + Speech string + Token string + type ASRResponse struct + CorpusNo string + ERRMSG string + ERRNO int + Result []string + SN string + type TTSConfig struct + PER int + PIT int + SPD int + VOL int + type VoiceClient struct + TTSConfig *TTSConfig + func NewVoiceClient(ApiKey, secretKey string) *VoiceClient + func (vc *VoiceClient) SpeechToText(ap ASRParams) ([]string, error) + func (vc *VoiceClient) TextToSpeech(txt string) ([]byte, error)