Skip to main content
POST
/
v3
/
glm-tts-voice-clone
GLM Audio Voice Cloning
curl --request POST \
  --url https://api.highwayapi.ai/v3/glm-tts-voice-clone \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "text": "<string>",
  "input": "<string>",
  "audio_url": "<string>",
  "voice_name": "<string>"
}
'
{
  "voice": "<string>",
  "audio_url": "<string>"
}
Use voice cloning technology to generate speech synthesis with the specified voice and text content based on a sample audio.

Request Headers

Content-Type
string
required
Enum value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

text
string
The text content of the sample audio. Optional.
input
string
required
The target text content for generating the preview audio.
audio_url
string
required
The URL of the sample audio. The size limit is no more than 10 MB. We recommend an audio duration between 3 and 30 seconds.
voice_name
string
required
Specify a unique voice name.

Response Information

voice
string
Voice
audio_url
string
The URL of the generated preview audio file.