https://hegedustibor.github.io/htgo-tts/
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.")
Note: The "Native" handler works around the Oto librery, see the "Prerequisite" section to work with this handler
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.Native{}}
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, Proxy: "https://..."}
speech.Speak("Your sentence.")
If you encounter issues using HTGO-TTS or would like to suggest improvements to the source code, you can create an issue on the "Issues" tab. If you'd like to contribute to the HTGO-TTS source code, please submit a pull request.
HTGO-TTS is free software and is available under the MIT license. For more information, please see the LICENSE file in the source code repository.
Have Fun!