比如阿里云的这样调用就行
https://nls-gateway.cn-shanghai.aliyuncs.com/stream/v1/tts?appkey=xxxx&token=xxxx&text= 测试文本&format=mp3&sample_rate=16000
Web API的文档
https://cloud.tencent.com/document/product/1073/37995
https://cloud.tencent.com/document/product/1073/34093
您好,根据开发工具集的描述,该接口支持后端调用,出于安全不建议前端调用:
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
API接口的输入示例:
https://tts.tencentcloudapi.com/?Action=TextToVoice
&Text=你好
&SessionId=session-1234
&Volume=1
&Speed=1
&ProjectId=0
&ModelType=1
&PrimaryLanguage=1
&SampleRate=16000
&Codec=wav
&<公共请求参数>