Synchronous Voice Cloning
Suitable for short text (less than 500 characters) voice cloning, returns results immediately.
Request Information
- Method:
POST
- Endpoint:
/api/instant/clone-sync
- Content Type:
multipart/form-data
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
audio | File (binary) | Yes* | Audio file for voice cloning. Supported formats include WAV, MP3, and M4A. You must provide either audio or audio_url . |
audio_url | string | Yes* | Publicly accessible audio file URL (WAV, MP3, M4A) for voice cloning. You must provide either audio or audio_url . |
text | string | Yes | The text you want to synthesize with the cloned voice. |
api_key | string | Yes | Your unique API key for authentication and access. This key is used to verify your requests and link them to your user account. |
type | int | Yes | 1. Return streaming media 2. Return a playable audio_url (valid for 24 hours) |
*Note: Either audio
or audio_url
parameter is required, at least one must be provided.
Response
Success Response
Return Type: Returns streaming media or audio_url
based on the type
parameter
{
"audio_url": "https://pub-86e8fdaa1c484bfb856e9d0f2cf54e2a.r2.dev/1748152296147_89ce52d0_voice_clone_sync_b5f0ff03.mp3"
}
Error Response
- 400 Bad Request: Missing required parameters (e.g.,
api_key
, or neitheraudio
noraudio_url
provided)
Example Requests
Using Audio File
curl -X POST https://aivoiceclonefree.com/api/instant/clone-sync \
-F "[email protected]" \
-F "text=Hello, this is a test message" \
-F "api_key=your_api_key_here" \
-F "type=2"
Using Audio URL
curl -X POST https://aivoiceclonefree.com/api/instant/clone-sync \
-F "audio_url=https://example.com/sample.mp3" \
-F "text=Hello, this is a test message" \
-F "api_key=your_api_key_here" \
-F "type=2"
Usage Instructions
- Text Length Limit: Suitable for short text less than 500 characters
- Audio Format: Supports WAV, MP3, M4A formats
- Return Type:
type=1
: Returns audio streamtype=2
: Returns audio file URL (valid for 24 hours)
- Response Time: Usually returns results within seconds
Last updated on