Retrieve Voice Sample Audio
Changed onRetrieve the first 30 seconds of voice sample audio with or without noise removal.
Request
- Base URLhttps://api.elevenlabs.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.elevenlabs.io/v1/voices/pvc/{voice_id}/samples/{sample_id}/audio
- Authnone declared
Path parameters
Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
Sample ID to be used
Query parameters
If set will remove background noise for voice samples using our audio isolation model. If the samples do not include background noise, it can make the quality worse.
Headers
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
Example response
{
"audio_base_64": "audio_base_64",
"duration_secs": 5,
"media_type": "audio/mpeg",
"sample_id": "DCwhRBWXzGAHq8TQ4Fs18",
"voice_id": "DCwhRBWXzGAHq8TQ4Fs18"
}Changes
- breaking
removed the request body
- info
api operation id
Retrieve_voice_sample_audio_v1_voices_pvc__voice_id__samples__sample_id__audio_getremoved and replaced withget_pvc_sample_audio - info
added the new optional
queryrequest parameterremove_background_noise
- breaking
- info
endpoint added
- info