
微软tts是业界公认文字转语音效果最佳
本文使用docker搭建微软tts服务并提供api接口对外提供服务
对接官方免费在线体验接口,搭建后可免费进行调用使用,不保证永久稳定可用
调用方式
url
:http://127.0.0.1:5003/tts
method
:POST
参数 |
类型 |
描述 |
text |
string |
语音文字内容 |
voiceName |
string |
发音人(例:zh-CN-XiaoxiaoNeural) |
rate |
int |
语速(0~100) |
pitch |
int |
语调(0~100) |
response
ÿ