Endpoint
Sample Output
Listen to a real sample output: Output File: Download AudioTry 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 eitheraudio_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.
audio_url
.
Payload and Request Formation
Authorizations
Body
multipart/form-data
URL of audio file to process
Example:
"https://example.com/audio.wav"
Voice model ID
Example:
"demo-voice-id"
Audio file to upload
1 to remove background noise, 0 to keep
Available options:
0
, 1
Pitch adjustment (-12 to +12)
Required range:
-12 <= x <= 12
Callback URL
Example:
"https://example.com/callback"