Skip to content

音频翻译

音频翻译

POST /v1/audio/translations

将音频翻译为英文文本

请求头 (Headers)

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

请求体 (Request Body)

Content-Type: multipart/form-data

字段类型必选描述
filestring
modelstring
promptstring
response_formatstring
temperaturenumber

请求体示例

json
{
  "file": "string",
  "model": "string",
  "prompt": "string",
  "response_format": "string",
  "temperature": 0
}

返回响应 (Responses)

200 - 成功翻译

字段类型描述
textstring

响应示例

json
{
  "text": "string"
}

Released under the MIT License.