语音转写
将音频转写为文本,兼容 OpenAI Audio Transcriptions 接口。
基本信息
方法POST
端点https://koprouter.kopglobal.com/v1/audio/transcriptions
鉴权Authorization: Bearer sk-...
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model |
string | 是 | 语音转写模型 ID |
file |
file | 是 | 待转写音频文件 |
language |
string | 否 | 音频语言,如 zh、en |
response_format |
string | 否 | 返回格式,如 json、text、srt |
请求示例
curl https://koprouter.kopglobal.com/v1/audio/transcriptions \
-H "Authorization: Bearer sk-..." \
-F "model=MODEL_ID" \
-F "file=@audio.mp3"
响应示例
{
"text": "你好,欢迎使用 KOPRouter。"
}