Skip to content

语音转文字

使用 Whisper 同步识别录音。

http
POST /v1/chat/transcribe
参数类型必填说明
audiostring音频 data URI 或纯 base64,解码后最大 10MB
bash
curl -X POST https://api.modelgo.moneygo.ai/v1/chat/transcribe \
  -H "Authorization: Bearer sk-你的Key" \
  -H "Content-Type: application/json" \
  -d '{"audio":"data:audio/webm;base64,..."}'

返回:

json
{"text":"你好,请介绍一下自己。","language":"zh"}