samples

Get Audio From Sample

Changed on

Returns the audio corresponding to a sample attached to a voice.

get/v1/voices/{voice_id}/samples/{sample_id}/audio

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/{voice_id}/samples/{sample_id}/audio
  • 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, you can use GET https://api.elevenlabs.io/v1/voices/{voice_id} to list all the available samples for a voice.

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.

Response

Successful Response

Changes

    • info

      api operation id Get_audio_from_sample_v1_voices__voice_id__samples__sample_id__audio_get removed and replaced with get_audio_from_sample

    • info

      header request parameter xi-api-key list-of-types was widened by adding types null

    • info

      for the header request parameter xi-api-key, the type was generalized from string to no type