-
Golang文字转语音工具包:htgo-tts
资源介绍
htgo-tts
要求:
mplayer(可选)
安装
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"
用
speech := htgotts. Speech { Folder : "audio" , Language : "en" }
speech . Speak ( "Your sentence." )
与处理程序一起使用
import (
htgotts "github.com/hegedustibor/htgo-tts"
handl