Voice Conversion
Transform any voice to match a target speaker while maintaining natural intonation and emotion.
Try it out
Test the Voice Conversion API directly in your browser with our interactive playground.
Overview
The Voice Conversion API allows you to modify the voice characteristics of audio content while preserving the original speech content, timing, and emotion.
API Reference
Endpoint
POST https://api.tryvinci.com/vincivoice
Headers
Name | Type | Description |
---|---|---|
X-User-ID | string | Required. Your user ID |
Request Body
Multipart form data with:
Parameter | Type | Description |
---|---|---|
audio | File | Source audio file to convert |
target_voice | string | Target voice identifier |
Response
{
url: string, // URL to the converted audio file
media_type: string, // "audio/wav"
user_id: string // The user ID used for the request
}
Code Examples
- Python
- JavaScript
import requests
url = "https://api.tryvinci.com/vincivoice"
headers = {"X-User-ID": "your-user-id"}
files = {"audio": open("input.wav", "rb")}
data = {"target_voice": "voice_1"}
response = requests.post(url, headers=headers, files=files, data=data)
result = response.json()
print(f"Converted Audio URL: {result['url']}")
const formData = new FormData();
formData.append('audio', audioFile);
formData.append('target_voice', 'voice_1');
const response = await fetch('https://api.tryvinci.com/vincivoice', {
method: 'POST',
headers: {
'X-User-ID': 'your-user-id',
},
body: formData,
});
const result = await response.json();
console.log(`Converted Audio URL: ${result.url}`);
Voice Features
Target Voices
Choose from our pre-trained voice library or use custom voice cloning.
Audio Requirements
Supports WAV, MP3, and M4A formats. Recommended: 16-bit PCM WAV.
Quality Control
Automatic audio enhancement and noise reduction included.
Best Practices
Audio Quality
Use high-quality source audio for best results.
Duration Limits
Optimal performance for 5-30 second segments.
Optimization
For longer content, consider splitting into smaller segments and using our batch processing endpoint.