htgo tts
v1.6
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." )注意:“本機”處理程序在OTO庫中工作,請參見與此處理程序一起工作的“先決條件”部分
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." )如果您使用HTGO-TTS遇到問題,或者想建議對源代碼進行改進,則可以在“問題”選項卡上創建問題。如果您想為HTGO-TTS源代碼做出貢獻,請提交拉動請求。
HTGO-TTS是免費軟件,可在MIT許可下獲得。有關更多信息,請參閱源代碼存儲庫中的許可證文件。
玩得開心!