Skip to main content
POST
/
audio-to-text
Error
A valid request URL is required to generate request examples
{
  "text": "Hello, I would like to know more about the iPhone 13 Pro Max."
}

Authorizations

Authorization
string
header
required

API Key 认证。对于所有 API 请求,请在 Authorization HTTP 头中包含您的 API Key,并加上 Bearer 前缀。示例:Authorization: Bearer {API_KEY}强烈建议将 API Key 存储在服务端,不要在客户端共享或存储,以避免 API Key 泄漏导致严重后果。

Body

multipart/form-data

语音转文字的请求体。

file
file
required

音频文件。支持格式:mp3mp4mpegmpgam4awavwebm。大小限制:30 MB

user
string

用户标识符。

Response

语音转文字成功。

text
string

语音识别输出的文字。