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许可下获得。有关更多信息,请参阅源代码存储库中的许可证文件。
玩得开心!