Voice Changer
Convert the voice from an audio file or URL to a different voice.
Convert the voice from an audio file or URL to a different voice using AI voice models.
The VoiceChanger endpoint provides real-time voice transformation by modifying the pitch, removing background noise, and converting the voice using a selected model. Ideal for creative content, dubbing, or personalized audio experiences.
๐ก Endpoint
This is the primary endpoint for initiating voice conversion tasks.
โถ๏ธ Sample Output
Listen to a real sample output:
Prompt: a song about greenery, nature and forest.
Download Audio๐งช Try it Yourself
Visit the VoiceChanger Endpoint Explorer to test it live. Upload a sample, pick a voice, and experience real-time voice transformation.
๐ ๏ธ Request Parameters
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. |
remove_background | Integer | Optional | Set to 1 to remove background noise. Default is 0 . |
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 either
audio_url
oraudio_file
โ not both asNone
.
๐ค Sample Request
๐ cURL
๐ Python
๐ Replace
{path_to_your_audio_file}
,api_key
, andwebhook_url
before executing.
๐ฅ Sample Response
โ Success (200 OK)
๐ฅ Webhook Response
โ Success (200 OK)
โ Common Errors
- 400 Bad Request: Invalid or missing input file.
- 402 Payment Required: Your credit balance is insufficient.
- 422 Unprocessable Entity: No
audio_url
oraudio_file
provided. - 500 Internal Server Error: Something went wrong on our end.
๐ Webhook Response
When the voice conversion completes, the webhook receives:
You can download or stream the result directly from the audio_url
.
Payload and Request Formation
Authorizations
Body
Response
Successful response
The response is of type object
.