Skip to main content
POST
Python
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: Output File: 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

💡Note: You must provide either audio_url or audio_file — not both as None.
content-type: multipart/form-data

Sample Request

cURL

Python

🔐 Replace {path_to_your_audio_file}, api_key, and webhook_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 or audio_file provided.
  • 500 Internal Server Error: Something went wrong on our end.
You can download or stream the result directly from the audio_url.

Payload and Request Formation

Authorizations

Authorization
string
header
required

Body

multipart/form-data
audio_url
string
required

Input audio URL (supported format: YouTube URL).

Example:

"https://example.com/audio.wav"

voice_id
string
required

Voice model ID

Example:

"demo-voice-id"

audio_file
file

Audio file to upload

remove_background
enum<integer>
default:0

1 to remove background noise, 0 to keep

Available options:
0,
1
pitch
integer
default:0

Pitch adjustment (-12 to +12)

Required range: -12 <= x <= 12
webhook_url
string

Callback URL

Example:

"https://example.com/callback"

Response

Successful response

success
boolean
task_id
string
conversion_id
string
eta
integer