v1

latestOpenAPI 3.1.02026-07-2634132204.7 KB
Audio

语音识别接口

将音频文件转换为文字的接口,支持多种音频格式和转录选项。

post/audio/transcriptions

Request body

modelstring required

语音识别模型

retriesinteger

自动重试次数,默认0,表示失败不重试

Example request

{
  "audio": {
    "url": "https://example.com/audio.wav",
    "format": "mp3"
  }
}

Response

成功响应

textstring required

转录文本

durationnumber

音频总时长(秒)