pvc-voices

Update Pvc Voice Sample

Changed on

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}

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/{sample_id}
  • 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
sample_idstring required

Sample ID to be used

Example:VW7YKqPnjY4h39yTbx2L

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

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

Changes

    • info

      api operation id Update_PVC_voice_sample_v1_voices_pvc__voice_id__samples__sample_id__post removed and replaced with edit_pvc_voice_sample

    • info

      added the new optional request property

    • info

      endpoint added