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

# GLM Voice Clone

Uses voice cloning technology to synthesize speech with a specified voice timbre and text content based on a sample audio.

## Request Headers

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

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="text" type="string">
  Text content of the sample audio (optional).
</ParamField>

<ParamField body="input" type="string" required={true}>
  Target text content for the generated preview audio.
</ParamField>

<ParamField body="audio_url" type="string" required={true}>
  URL of the sample audio. File size must not exceed 10MB. Recommended audio duration is between 3 and 30 seconds.
</ParamField>

<ParamField body="voice_name" type="string" required={true}>
  A unique voice name identifier.
</ParamField>

## Response

<ResponseField name="voice" type="string" required={false}>
  Voice timbre identifier.
</ResponseField>

<ResponseField name="audio_url" type="string" required={false}>
  URL of the generated preview audio file.
</ResponseField>
