跳轉到主要內容
POST
/
v1
/
audio
/
transcriptions
curl https://www.qingbo.dev/v1/audio/transcriptions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F file="@audio.mp3" \
  -F model="whisper-1"
{
  "text": "歡迎使用 WaveAPI 語音辨識服務。"
}
同步介面 — 請求完成後直接回傳辨識結果。
curl https://www.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
辨識或翻譯後的文字內容