pvc-voices

Add Samples To Pvc Voice

Changed on

Add audio samples to a PVC voice

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

Request

  • Base URL
    https://api.elevenlabs.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.elevenlabs.io/v1/voices/pvc/{voice_id}/samples
  • Auth
    none declared

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

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.

Request body multipart/form-data

filesstring[] required

Audio files used to create the voice.

remove_background_noiseboolean

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.

Example request

{
  "remove_background_noise": true
}

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
  }
]

Changes