Documentation ¶ Index ¶ func Speak(text string, language string) type MusicType type Player func NewPlayer() *Player func (p *Player) PlayAudioFile(filePath string, mType MusicType) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Speak ¶ func Speak(text string, language string) Speak does text to speach language should follow country codes that are two characters e.g. for japanese, it would be 'ja' english would be 'en' or 'en-UK additional examples are here: "github.com/hegedustibor/htgo-tts/voices" Types ¶ type MusicType ¶ type MusicType int const ( TypeOgg MusicType = iota TypeMP3 ) type Player ¶ type Player struct { // contains filtered or unexported fields } func NewPlayer ¶ func NewPlayer() *Player func (*Player) PlayAudioFile ¶ func (p *Player) PlayAudioFile(filePath string, mType MusicType) error Source Files ¶ View all Source files player.go tts.go Click to show internal directories. Click to hide internal directories.