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.