Text-to-Speech (TTS)
使用文本转语音 (TTS) 模型将文本转换为语音,这对于为语音助手或辅助工具等应用进程从文本输入创建音频输出很有用。
请求体
modelstring必填
textstring必填
containerstring可选
encodingstring可选
sample_ratestring可选
响应
201成功
post
/ttsPOST /tts HTTP/1.1
Host: api.aimlapi.com
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"model": "text",
"text": "text",
"container": "text",
"encoding": "text",
"sample_rate": "text"
}201成功
无内容
最后更新于