Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Communicate ¶
type Communicate struct { Voice string VoiceLangRegion string Pitch string Rate string Volume string IgnoreSSLVerification bool // contains filtered or unexported fields }
func New ¶
func New(options ...Option) *Communicate
func (*Communicate) GenerateVoice ¶
func (c *Communicate) GenerateVoice(text string) ([]byte, error)
GenerateVoice generate the voice
func (*Communicate) GenerateVoiceStreamTo ¶
func (c *Communicate) GenerateVoiceStreamTo(text string, target io.Writer) error
type Option ¶
type Option func(option *Communicate)
func WithRate ¶
WithRate set rate of the tts output.rate=-50% means rate down 50%,rate=+50% means rate up 50%
func WithVoiceLangRegion ¶
func WithVolume ¶
WithVolume set volume of the tts output.volume=-50% means volume down 50%,volume=+50% means volume up 50%
Click to show internal directories.
Click to hide internal directories.