Convert the voice in an audio file to a target ElevenLabs voice using speech-to-speech technology.

Model

elevenlabs/voice-changer

Parameters

ParameterTypeRequiredDefaultDescription
audio_urlstringYes-URL of the source audio file to convert
voice_idstringYes-Target ElevenLabs voice ID
model_idstringNoeleven_multilingual_sts_v2ElevenLabs speech-to-speech model ID
output_formatstringNo-Audio output format (e.g. mp3_44100_128)
file_formatstringNo-Input audio format hint: pcm_s16le_16 or other
remove_background_noisebooleanNo-Strip background noise from input audio before conversion
seedintegerNo-Random seed for reproducible generation (0–4294967295)
voice_settingsobjectNo-Advanced voice configuration overrides (see below)

voice_settings

FieldTypeDescription
stabilitynumber0–1. Voice stability
similarity_boostnumber0–1. How closely to match the target voice
stylenumber0–1. Style exaggeration
speednumberSpeech speed multiplier
use_speaker_boostbooleanBoost speaker clarity

Resources

Get available voices from the Resources API:
GET /v1/resources/elevenlabs/voices

Example

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "elevenlabs/voice-changer",
    "input": {
      "audio_url": "https://example.com/source-audio.mp3",
      "voice_id": "TX3LPaxmHKxFdv7VOQHJ",
      "model_id": "eleven_multilingual_sts_v2",
      "output_format": "mp3_44100_128",
      "remove_background_noise": true,
      "seed": 42,
      "voice_settings": {
        "stability": 0.5,
        "similarity_boost": 0.75,
        "style": 0.5,
        "speed": 1.0,
        "use_speaker_boost": true
      }
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}

Completed Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "completed",
    "output": {
      "audio_url": "https://files.storagecdn.online/audio/abc123.mp3"
    }
  }
}