Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
509 views
in Technique[技术] by (71.8m points)

go播放音频文件或者声音使用什么库?

需求:

1. 播放音频文件

2. 播放文字

有什么好有的库没有,谢谢各位

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  1. 播放音频文件

参考这篇教程
音频和音乐 · Go语言中文文档

2.播放文字

我猜想你这是想做文字转语音功能,没找到合适的库,但是我找到2个API或许可以参考一下
科大讯飞文字转语音API
百度文字转语音API


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...