audio

package
v0.0.0-...-719087c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL