POST
/
cache
/
generate
/
voice-clone
curl --request POST \
  --url https://api.charp.ai/cache/generate/voice-clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "source_audio_url": "<string>",
  "adjacent_audio_url": "<string>",
  "model": "<string>",
  "trim_silence": 123,
  "update_audio_length": 123,
  "update_loudness": true,
  "smooth_transition": true,
  "tone_matching": 123,
  "pitch_matching": 123,
  "concat_adjacent_and_final_output": true
}'
{
  "task_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication using OAuth2 access token

Body

application/json
Voice clone generation parameters
source_audio_url
string
required

URL of the source audio

model
string
required

Voice clone model to use

adjacent_audio_url
string

URL of the adjacent audio

trim_silence
integer

Trim silence parameter

update_audio_length
integer

Update audio length parameter

update_loudness
boolean

Whether to update loudness

smooth_transition
boolean

Whether to smooth transitions

tone_matching
integer

Tone matching parameter

pitch_matching
integer

Pitch matching parameter

concat_adjacent_and_final_output
boolean

Whether to concatenate adjacent and final output

Response

200
application/json
Voice clone generation task created successfully
task_id
string
required

Unique identifier of the generation task