> ## 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 音频复刻

使用音色复刻技术，基于示例音频生成指定音色、文本内容的语音合成。

## 请求头

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

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

## 请求体

<ParamField body="text" type="string">
  示例音频的文本内容，选填
</ParamField>

<ParamField body="input" type="string" required={true}>
  生成试听音频的目标文本内容
</ParamField>

<ParamField body="audio_url" type="string" required={true}>
  示例音频的URL地址。大小限制不超过10M，建议音频时长在3秒到30秒之间。
</ParamField>

<ParamField body="voice_name" type="string" required={true}>
  指定唯一的音色名称
</ParamField>

## 响应

<ResponseField name="voice" type="string">
  音色
</ResponseField>

<ResponseField name="audio_url" type="string">
  生成的试听音频文件URL地址
</ResponseField>
