Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleTTS ¶
type GoogleTTS struct {
// contains filtered or unexported fields
}
GoogleTTS struct with default options to use
func NewGoogleTTS ¶
func NewGoogleTTS() *GoogleTTS
NewGoogleTTS returns a new instance with default options
func (*GoogleTTS) MustSay ¶
func (t *GoogleTTS) MustSay(lang, text string, opts *SayOptions)
MustSay is a helper that wraps a call to Say() and panics if the error is non-nil.
func (*GoogleTTS) Say ¶
func (t *GoogleTTS) Say(l, text string, opts *SayOptions) error
Say will play an audio of the given text
func (*GoogleTTS) SetCacheDir ¶
SetCacheDir set a new path to save mp3 files. it fails if path doesn't exist
type SayOptions ¶
SayOptions struct with all options you can pass to Say()
Click to show internal directories.
Click to hide internal directories.