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-keystringOptional

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_secsdouble
remove_background_noiseboolean
has_isolated_audioboolean
has_isolated_audio_previewboolean
speaker_separationobject
trim_startinteger
trim_endinteger

Errors

422
Samples Create Request Unprocessable Entity Error