Skip to content

Microsoft TTS (Text-To-Speech) for golang

Notifications You must be signed in to change notification settings

Shujunhuai/golang-tts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-tts

文本到语音转换,基于微软SAPI

安装

1、go get -u github.com/zhaopuyang/golang-tts
2、将base文件夹中的tts.dll复制到当前文件目录下
3、完毕!

使用

golang_tts.SpeakText("你好,世界!")

注意

base文件夹为tts引擎的c++源文件
若要重新编译请先安装mingw64,编译命令:gcc --share tts.cc -o tts.dll -lole32 -lsapi

About

Microsoft TTS (Text-To-Speech) for golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%