---
title: "Convert voice from audio file or URL"
method: POST
path: "/v1/VoiceChanger"
---

# Convert voice from audio file or URL

`POST /v1/VoiceChanger`

## Request

- Base URL: `https://api.musicgpt.com/api/public`
- URL: `https://api.musicgpt.com/api/public/v1/VoiceChanger`
- Auth: API key in header `Authorization`

Convert the voice from an audio file or URL to a different voice.

## Request body `multipart/form-data`

- union
  - object
    - `audio_url` string, required: Input audio URL (supported format: YouTube URL).
    - `audio_file` string, binary: Audio file to upload
    - `voice_id` string, required: Voice model ID
    - `remove_background` 0 | 1: 1 to remove background noise, 0 to keep
    - `pitch` integer: Pitch adjustment (-12 to +12)
    - `webhook_url` string: Callback URL
  - object
    - `audio_url` string: Input audio URL (supported format: YouTube URL).
    - `audio_file` string, binary, required: Audio file to upload
    - `voice_id` string, required: Voice model ID
    - `remove_background` 0 | 1: 1 to remove background noise, 0 to keep
    - `pitch` integer: Pitch adjustment (-12 to +12)
    - `webhook_url` string: Callback URL

## Response `200`

Successful response

- object
  - `success` boolean
  - `task_id` string
  - `conversion_id` string
  - `eta` integer

## Other responses

- `400`: Bad Request
- `402`: Payment Required
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/musicgpt/apis/musicgpt-api.md) - [All operations](https://skmtc.dev/musicgpt/apis/musicgpt-api/llms.txt) - [OpenAPI document](https://skmtc.dev/musicgpt/apis/musicgpt-api/revisions/6753dccf4c5d?raw)
