> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hubto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 音频转写

> 音频转文本接口。

## 用途

用于把语音内容转写为文本。

## 请求头

<ParamField header="Authorization" type="string" default="Bearer YOUR_API_KEY" required>
  Bearer 鉴权请求头。
</ParamField>

## 请求体

<ParamField body="model" type="string" default="whisper-1" required>
  语音识别模型名称。
</ParamField>

<ParamField body="file" type="file" required>
  待识别音频文件。该接口通常以 `multipart/form-data` 上传。
</ParamField>

<ParamField body="language" type="string" default="zh">
  可选，音频语言代码。
</ParamField>

<ParamField body="response_format" type="string" default="json">
  可选，返回结果格式。
</ParamField>

## 响应

<ResponseField name="text" type="string">
  转写后的文本内容。
</ResponseField>
