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

# GLM 音频转文字

使用 GLM-ASR-2512 模型将音频文件转录为文本，支持多语言转录。

## 请求头

<ParamField header="Content-Type" type="string" required={true}>
  枚举值: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer 身份验证格式，例如：Bearer \{\{API 密钥}}。
</ParamField>

## 请求体

<ParamField body="file" type="string" required={true}>
  需要转录的音频文件URL或Base64编码字符串，支持的音频文件格式：.wav / .mp3，规格限制：文件大小 ≤ 25 MB、音频时长 ≤ 30 秒
</ParamField>

<ParamField body="prompt" type="string">
  在长文本场景中，可以提供之前的转录结果作为上下文。建议小于8000字。
</ParamField>

<ParamField body="hotwords" type="array">
  热词表，用于提升特定领域词汇识别率。格式例如\["人名","地名"]，建议不超过100个。

  数组长度：0 - 100
</ParamField>

## 响应

<ResponseField name="text" type="string">
  音频转录的完整内容
</ResponseField>
