Skip to content

文本转语音 ​

文本转语音 ​

POST /v1/audio/speech

将文本转换为音频

请求头 (Headers) ​

参数名类型必选描述示例
Authorizationstring否鉴权令牌Bearer ********************

请求体 (Request Body) ​

Content-Type: application/json

字段类型必选描述
modelstring是
inputstring是要转换的文本
voicestring是
response_formatstring否
speednumber否

请求体示例 ​

json
{
  "model": "tts-1",
  "input": "string",
  "voice": "string",
  "response_format": "string",
  "speed": 0
}

返回响应 (Responses) ​

200 - 成功生成音频 ​

响应示例 ​

json
"string"

Released under the MIT License.