https://hegedustibor.github.io/htgo-tts/
- mplayer (optional)
go get "github.com/hegedustibor/htgo-tts"
go get -u "github.com/hegedustibor/htgo-tts"
go clean -i "github.com/hegedustibor/htgo-tts"
import "github.com/hegedustibor/htgo-tts"
import "github.com/hegedustibor/htgo-tts/voices"
speech := htgotts.Speech{Folder: "audio", Language: voices.English}
speech.Speak("Your sentence.")
import (
htgotts "github.com/hegedustibor/htgo-tts"
handlers "github.com/hegedustibor/htgo-tts/handlers"
voices "github.com/hegedustibor/htgo-tts/voices"
)
speech := htgotts.Speech{Folder: "audio", Language: voices.English, Handler: &handlers.MPlayer{}}
speech.Speak("Your sentence.")
Have Fun!