v5

latestOpenAPI 3.1.02026-08-043621,4011.8 MB
pvc-voices

Add Samples To Pvc Voice

Add audio samples to a PVC voice

post/v1/voices/pvc/{voice_id}/samples

Path parameters

voice_idstring required

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

Example:21m00Tcm4TlvDq8ikWAM

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

Headers

xi-api-keystring nullable

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.

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.

Response

Successful Response

sample_idstring required

The ID of the sample.

file_namestring required

The name of the sample file.

mime_typestring required

The MIME type of the sample file.

size_bytesinteger required

The size of the sample file in bytes.

hashstring required

The hash of the sample file.

duration_secsnumber nullable
remove_background_noiseboolean nullable
has_isolated_audioboolean nullable
has_isolated_audio_previewboolean nullable
trim_startinteger nullable
trim_endinteger nullable

Example response

[
  {
    "file_name": "sample.mp3",
    "hash": "1234567890",
    "mime_type": "audio/mpeg",
    "sample_id": "DCwhRBWXzGAHq8TQ4Fs18",
    "size_bytes": 1000000
  }
]