创建翻译 (不支持)

POST /v1/audio/translations

MethodPOST
Path/v1/audio/translations
Typehttp
Status1
Module2102810
Folder45008043

概览

MethodPOST
Path/v1/audio/translations
Typehttp
Status1
Module2102810
Folder45008043

请求体

{
  "type": "multipart/form-data",
  "parameters": [
    {
      "required": true,
      "description": "要翻译的音频文件对象(不是文件名),格式为:flac、mp3、mp4、mpeg、mpga、m4a、ogg、wav 或 webm。\n\n",
      "type": "file",
      "id": "7lt6Ryb7tx",
      "enable": true,
      "name": "file",
      "sampleValue": "file://C:\\Users\\Administrator\\Desktop\\test.m4a"
    },
    {
      "required": true,
      "description": "要使用的模型 ID。目前只有 whisper-1 是可用的。\n\n",
      "type": "string",
      "id": "UTcnbvPXON",
      "enable": true,
      "name": "model",
      "sampleValue": "gpt-4o-transcribe"
    },
    {
      "required": false,
      "description": "一个可选的文本,用于指导模型的风格或继续之前的音频段落。提示文本应该是英文。\n\n",
      "type": "string",
      "id": "VyK3pTg3pz",
      "enable": true,
      "name": "prompt",
      "sampleValue": ""
    },
    {
      "required": false,
      "description": "翻译结果的格式,可选择:json、text、srt、verbose_json 或 vtt。\n\n",
      "type": "string",
      "id": "zgTcDyfneT",
      "enable": true,
      "name": "response_format",
      "sampleValue": ""
    },
    {
      "required": false,
      "description": "默认为 0\n采样温度,介于 0 和 1 之间。更高的值如 0.8 会使输出更随机,而较低的值如 0.2 会使其更聚焦和确定性。如果设置为 0,模型将使用对数概率自动提高温度直到达到特定阈值。",
      "type": "number",
      "id": "w8ZJJELYIr",
      "enable": true,
      "name": "temperature",
      "sampleValue": ""
    }
  ],
  "mediaType": "",
  "examples": [],
  "oasExtensions": ""
}

响应

[
  {
    "id": 562497980,
    "name": "成功",
    "code": 200,
    "contentType": "json",
    "jsonSchema": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "x-apifox-orders": [
        "text"
      ]
    },
    "itemSchema": {},
    "description": "",
    "mediaType": "",
    "headers": [],
    "oasExtensions": ""
  }
]

响应示例

[
  {
    "name": "成功示例",
    "responseId": 562497980,
    "data": "{\r\n  \"text\": \"Hello, my name is Wolfgang and I come from Germany. Where are you heading today?\"\r\n}",
    "description": "",
    "oasKey": "",
    "oasExtensions": "",
    "id": 440608986
  }
]