Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpeechSynthesisListener ¶
type SpeechSynthesisListener interface { OnMessage(*SpeechSynthesisResponse) OnComplete(*SpeechSynthesisResponse) OnCancel(*SpeechSynthesisResponse) OnFail(*SpeechSynthesisResponse, error) }
SpeechSynthesisListener is the listener of
type SpeechSynthesisResponse ¶
SpeechSynthesisResponse SpeechSynthesisResponse
type SpeechSynthesizer ¶
type SpeechSynthesizer struct { AppID int64 Credential *common.Credential VoiceType int64 SampleRate int64 Codec string ProxyURL string // contains filtered or unexported fields }
SpeechSynthesizer is the entry for TTS service
func NewSpeechSynthesizer ¶
func NewSpeechSynthesizer(appID int64, credential *common.Credential, listener SpeechSynthesisListener) *SpeechSynthesizer
NewSpeechSynthesizer creates instance of SpeechSynthesizer
func (*SpeechSynthesizer) Cancel ¶
func (synthesizer *SpeechSynthesizer) Cancel() error
Cancel Cancel
func (*SpeechSynthesizer) Synthesis ¶
func (synthesizer *SpeechSynthesizer) Synthesis(text string) error
Synthesis Synthesis
Click to show internal directories.
Click to hide internal directories.