文字转语音 - 搭建微软tts整合web服务提供api接口(免费)

微软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:jsonData with base64File
发音人选择区间见文末

1. 安装docker

yum-config-manager --add-repo&

猜你喜欢

转载自blog.csdn.net/wkh___/article/details/130274523
今日推荐