Convert an audio file or URL into a cover song using a different voice.
| Parameter | Type | Required | Description |
|---|---|---|---|
audio_url | String | Optional | URL of the audio file to convert. Either audio_url or audio_file must be provided. |
audio_file | UploadFile | Optional | Upload the audio file directly. Either audio_url or audio_file must be provided. |
voice_id | String | Yes | Voice model to convert the audio into. |
pitch | Integer | Optional | Adjust pitch between -12 and 12 semitones. Default is 0. |
webhook_url | String | Optional | Callback URL for async response. |
💡Note: You must provide eitheraudio_urloraudio_file— not both asNone.
content-type: multipart/form-data
Replace{path_to_your_audio_file},api_key, andwebhook_urlbefore executing.
audio_url or audio_file provided.audio_url.
URL of an audio file to process. Either audio_url or audio_file must be provided.
"https://example.com/audio.wav"
The ID of the voice model to use for voice transformation.
"demo-voice-id"
Audio file to upload and process. Either audio_file or audio_url must be provided.
Pitch adjustment for the voice. Range from -12 to 12. Default: 0
-12 <= x <= 12A URL where the result will be sent once processing is completed.
"https://example.com/callback"