# Voice Changer > Change your voice to sound like someone else—same words, different speaker. Just upload your voice and a target voice. ## Overview - **Model ID**: `voice-changer` - **Category**: audio - **Provider**: modelslab - **Status**: active - **Screenshot**: `https://assets.modelslab.com/generations/20bcaebb-b6e3-4944-80ab-a1c54505399b.webp` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v6/voice/voice_to_voice` - **Method**: POST ### Parameters - **`init_audio`** (required): Source utterances URL or base64 data (max 30 seconds) - Type: file (audio/mp3,audio/wav) - Example: Please upload your audio - **`target_audio`** (required): Target voice URL or base64 data (max 30 seconds) - Type: file (audio/mp3,audio/wav) - Example: please upload the targer audio - **`webhook`** (optional): URL to receive POST notification upon completion - Type: text - **` track_id`** (optional): ID for webhook identification - Type: text ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/voice/voice_to_voice \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "voice-changer", "init_audio": "https://pub-f3505056e06f40d6990886c8e14102b2.r2.dev/audio/tom_hanks_1.wav", "target_audio": "https://assets.modelslab.com/tmp/gEJ3RgkrWumjCJpb8hHYD3OsID7ET9-metaSGlyZV92b2ljZV9hY3RvcnNfYW5kX3ZvaWNlX292ZXJfc2VydmljZXNfLV9CdW5ueV9TdHVkaW9fMiAoMSktW0F1ZGlvVHJpbW1lci5jb21dLm1wMw==-.mp3", "webhook": "null", " track_id": "null" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/voice/voice_to_voice", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "voice-changer", "init_audio": "https://pub-f3505056e06f40d6990886c8e14102b2.r2.dev/audio/tom_hanks_1.wav", "target_audio": "https://assets.modelslab.com/tmp/gEJ3RgkrWumjCJpb8hHYD3OsID7ET9-metaSGlyZV92b2ljZV9hY3RvcnNfYW5kX3ZvaWNlX292ZXJfc2VydmljZXNfLV9CdW5ueV9TdHVkaW9fMiAoMSktW0F1ZGlvVHJpbW1lci5jb21dLm1wMw==-.mp3", "webhook": "null", " track_id": "null" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/voice/voice_to_voice", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "voice-changer", "init_audio": "https://pub-f3505056e06f40d6990886c8e14102b2.r2.dev/audio/tom_hanks_1.wav", "target_audio": "https://assets.modelslab.com/tmp/gEJ3RgkrWumjCJpb8hHYD3OsID7ET9-metaSGlyZV92b2ljZV9hY3RvcnNfYW5kX3ZvaWNlX292ZXJfc2VydmljZXNfLV9CdW5ueV9TdHVkaW9fMiAoMSktW0F1ZGlvVHJpbW1lci5jb21dLm1wMw==-.mp3", "webhook": "null", " track_id": "null" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/voice-changer/voice-changer) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)