跳转到主要内容
POST
/
v1
/
audio
/
transcriptions
curl https://qingbo.dev/v1/audio/transcriptions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F file="@audio.mp3" \
  -F model="whisper-1"
{
  "text": "欢迎使用 WaveAPI 语音识别服务。"
}
同步接口 — 请求完成后直接返回识别结果。
curl https://qingbo.dev/v1/audio/transcriptions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F file="@audio.mp3" \
  -F model="whisper-1"
{
  "text": "欢迎使用 WaveAPI 语音识别服务。"
}

可用模型

模型 ID说明
whisper-1OpenAI Whisper,支持多语言识别

两个端点

语音转文字

POST /v1/audio/transcriptions
将音频转录为原始语言的文本。

语音翻译

POST /v1/audio/translations
将音频翻译为英文文本。参数与转录端点相同。

请求参数

使用 multipart/form-data 格式:
file
file
必填
音频文件,支持 mp3、mp4、mpeg、mpga、m4a、wav、webm 格式
model
string
必填
模型 ID:whisper-1

响应

text
string
识别或翻译后的文本内容