Voice Conversion API
Convert Audio File
This endpoint takes a WAV vocal audio file and returns a URL string with the converted vocals audio file.
POST
/
convert
Authorization
Body
curl --location --request POST 'https://api.revocalize.ai/convert' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer <token>' \
--form 'audio=@/path_to_audio_file.wav'
--form 'model=andra'
--form 'transpose=0'
--form 'generations_count=4'
{
"task_id": "123456"
}
Request
audio_file
file
requiredThe input vocal audio file. The maximum allowed file size is 100MB. The recommended audio format is WAV. Other audio formats may be supported, but the results may be less accurate.
model
string
requiredThe ID of the AI voice model used for conversion. Fetch the available models for your organization from the /models API endpoint. The available demo models are:
andra
nicole_cherry
marius_moga
sebastian_dobrincu
transpose
integer
default: "0"The number of semitones to transpose the vocals. The default value is 0. The allowed range is -12 to 12.
generations_count
integer
default: "1"The number of generations to create. The default value is 1. The allowed range is 1 to 10.
Response
task_id
string
ID of the conversion task. Use it to check the status of the conversion task.
curl --location --request POST 'https://api.revocalize.ai/convert' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: Bearer <token>' \
--form 'audio=@/path_to_audio_file.wav'
--form 'model=andra'
--form 'transpose=0'
--form 'generations_count=4'
{
"task_id": "123456"
}