Get PVC voice sample audio

Retrieve the first 30 seconds of voice sample audio with or without noise removal.

Path parameters

voice_idstringRequired

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

sample_idstringRequired

Sample ID to be used

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
remove_background_noisebooleanOptionalDefaults to false

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.

Response

Successful Response

audio_base_64string

The base64 encoded audio.

voice_idstring

The ID of the voice.

sample_idstring

The ID of the sample.

media_typestring

The media type of the audio.

duration_secsdoubleOptional

The duration of the audio in seconds.

Errors