Model API

ElevenLabs Voice Changer

Change the voices in your audios with voices in ElevenLabs!

Model id

Use this in every request
elevenlabs/voice-changer

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "elevenlabs/voice-changer",
  "input": {
    "audio_url": "https://example.com/input.mp3"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "elevenlabs/voice-changer", "quote_id": "QUOTE_ID", "input": {"audio_url":"https://example.com/input.mp3"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for elevenlabs/voice-changer
NameTypeDescription
audio_urlrequiredstring (URL)
The input audio file
voicestring
The voice to use for speech generation

Default: Rachel

remove_background_noiseboolean
If set, will remove the background noise from your audio input using our audio isolation model.

Default: false

seedinteger
Random seed for reproducibility.
output_formatstring (enum)
Output format of the generated audio. Formatted as codec_sample_rate_bitrate.

Default: mp3_44100_128

One of: mp3_22050_32, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192, pcm_8000, pcm_16000, pcm_22050, pcm_24000, pcm_44100, pcm_48000, ulaw_8000, alaw_8000, opus_48000_32, opus_48000_64, opus_48000_96, opus_48000_128, opus_48000_192

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]

Pricing

  • per minute$0.4754/ minute

The exact charge for your input comes from a quote. How charges settle