Add samples to PVC voice

Add audio samples to a PVC voice

Path parameters

voice_idstringRequired

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

Headers

xi-api-keystringRequired

Request

This endpoint expects a multipart form with multiple files.
filesfilesRequired

Audio files used to create the voice.

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

sample_idstring

The ID of the sample.

file_namestring

The name of the sample file.

mime_typestring

The MIME type of the sample file.

size_bytesinteger

The size of the sample file in bytes.

hashstring

The hash of the sample file.

duration_secsdoubleOptional
remove_background_noisebooleanOptional
has_isolated_audiobooleanOptional
has_isolated_audio_previewbooleanOptional
speaker_separationobjectOptional
trim_startintegerOptional
trim_endintegerOptional

Errors