v4

OpenAPI 3.1.02026-07-313621,3961.8 MB
pvc-voices

Retrieve Separated Speaker Audio

Retrieve the separated audio for a specific speaker.

get/v1/voices/pvc/{voice_id}/samples/{sample_id}/speakers/{speaker_id}/audio

Path parameters

voice_idstring required

Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.

Example:21m00Tcm4TlvDq8ikWAM

Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.

sample_idstring required

Sample ID to be used

Example:VW7YKqPnjY4h39yTbx2L

Sample ID to be used

speaker_idstring required

Speaker ID to be used, you can use GET https://api.elevenlabs.io/v1/voices/{voice_id}/samples/{sample_id}/speakers to list all the available speakers for a sample.

Example:VW7YKqPnjY4h39yTbx2L

Speaker ID to be used, you can use GET https://api.elevenlabs.io/v1/voices/{voice_id}/samples/{sample_id}/speakers to list all the available speakers for a sample.

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Response

Successful Response

audio_base_64string required

The base64 encoded audio.

media_typestring required

The media type of the audio.

duration_secsnumber required

The duration of the audio in seconds.

Example response

{
  "audio_base_64": "audio_base_64",
  "duration_secs": 5,
  "media_type": "audio/mpeg"
}