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.")
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!