GET
/
v1
/
voices
/
{voice_id}
/
samples
/
{sample_id}
/
audio
from elevenlabs import ElevenLabs

client = ElevenLabs(
    api_key="YOUR_API_KEY",
)
client.samples.get_audio(
    voice_id="ja9xsmfGhxYcymxGcOGB",
    sample_id="pMsXgVXv3BLzUgSXRplE",
)
This response does not have an example.

Headers

xi-api-key
string

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

Path Parameters

voice_id
string
required

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

sample_id
string
required

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

Response

200 - audio/*

The response is of type file.