This endpoint allows users to extend an existing audio file or stream by appending new audio content after a specific timestamp. The new audio is generated using a prompt (e.g., describing the desired sound) and optional lyrics.
Parameter | Type | Required | Description |
---|---|---|---|
audio_file | UploadFile | Optional | Upload the audio file to extend. Required if audio_url is not provided. |
audio_url | String | Optional | Public or S3 URL to the input audio. Required if audio_file is not provided. |
extend_after | Float | Required | Time (in seconds) after which new audio is generated. |
prompt | String | Optional | Describes the desired extension sound. Example: “Add a melodic flute section” |
lyrics | String | Optional | Optional lyrics for the extended segment. Max 2000 characters. |
gender | String | Optional | Voice style if vocals are generated. Must be one of male , female , neutral . |
webhook_url | String | Optional | Callback URL for async result delivery. |
💡 Note: You must provide eitheraudio_file
oraudio_url
— at least one is required.
🔐 Replace{path_to_your_audio_file}
,api_key
, andwebhook_url
before executing.
Webhook responses include detailed metadata including task_id, conversion_id, audio files (conversion_path), lyrics etc.
extend_after
, or neither audio_file
nor audio_url
provided.Successfully initiated extend task
The response is of type object
.