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 or null
The ID of the sample.
file_namestring or null
The name of the sample file.
mime_typestring or null
The MIME type of the sample file.
size_bytesinteger or null
The size of the sample file in bytes.
hashstring or null
The hash of the sample file.
duration_secsdouble or null
remove_background_noiseboolean or null
has_isolated_audioboolean or null
has_isolated_audio_previewboolean or null
speaker_separationobject or null
trim_startinteger or null
trim_endinteger or null

Errors