provider pvc-voices GET /v1/voices/pvc/{voice_id}/samples/{sample_id}/audio
@utdk/elevenlabs /v1/voices/pvc/{voice_id}/samples/{sample_id}/audio
Retrieve Voice Sample Audio
Retrieve the first 30 seconds of voice sample audio with or without noise removal.
voice_id path required
Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
string
sample_id path required
Sample ID to be used
string
remove_background_noise query
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.
boolean
xi-api-key header
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.

Try it

Authentication
Configure credentials for ElevenLabs API Documentation
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getPvcSampleAudio
GET/v1/voices/pvc/{voice_id}/samples/{sample_id}/audio
Retrieve the first 30 seconds of voice sample audio with or without noise removal.

Parameters

required

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

required

Sample ID to be used

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.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.getPvcSampleAudio({
  "remove_background_noise": false
})