v4

OpenAPI 3.1.02026-07-313621,3961.8 MB
pvc-voices

Update Pvc Voice Sample

Update a PVC voice sample - apply noise removal, select speaker, change trim times or file name.

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

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.

sample_idstring required

Sample ID to be used

Example:VW7YKqPnjY4h39yTbx2L

Sample ID to be used

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.

Request body

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.

selected_speaker_idsstring[] nullable

Speaker IDs to be used for PVC training. Make sure you send all the speaker IDs you want to use for PVC training in one request because the last request will override the previous ones.

trim_start_timeinteger nullable

The start time of the audio to be used for PVC training. Time should be in milliseconds

trim_end_timeinteger nullable

The end time of the audio to be used for PVC training. Time should be in milliseconds

file_namestring nullable

The name of the audio file to be used for PVC training.

Example request

{
  "remove_background_noise": true,
  "trim_end_time": 10,
  "file_name": "sample.mp3"
}

Response

Successful Response

voice_idstring required

The ID of the voice.

Example response

{
  "voice_id": "b38kUX8pkfYO2kHyqfFy"
}