跳转到主要内容
POST
/
audio-to-text
Error
A valid request URL is required to generate request examples
{
  "text": "<string>"
}

授权

Authorization
string
header
必填

API-Key 鉴权。所有 API 请求都应在 Authorization HTTP Header 中包含你的 API-Key,格式为:Bearer {API_KEY}。强烈建议开发者把 API-Key 放在后端存储,而非客户端,以免泄露。

请求体

multipart/form-data
file
file
必填

语音文件。支持格式:['mp3', 'mp4', 'mpeg', 'mpga', 'm4a', 'wav', 'webm']。大小限制:15MB。

user
string
必填

用户标识。

响应

200 - application/json

成功将语音转换为文字。

text
string

输出文字。