---
title: "语音识别接口"
method: POST
path: "/audio/transcriptions"
tags: ["Audio"]
---

# 语音识别接口

`POST /audio/transcriptions`

将音频文件转换为文字的接口，支持多种音频格式和转录选项。

## Request body

- object
  - `model` string, required — 语音识别模型
  - `audio` object, required — 音频文件信息
    - `url` string, required — 音频文件的URL或Base64编码的音频数据
    - `format` string, required — 音频格式，支持wav、mp3等
  - `retries` integer — 自动重试次数，默认0，表示失败不重试

## Response `200`

成功响应

- object
  - `text` string, required — 转录文本
  - `duration` number — 音频总时长(秒)

## Other responses

- `400` — 参数验证错误
- `401` — 未授权
- `500` — 标准错误响应

---

[API](https://skmtc.dev/geekai/apis/api.md) · [All operations](https://skmtc.dev/geekai/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/geekai/api/revisions/2bf0c8f70a39/schema)
