Download the PHP package talendor/elevenlabs-api without Composer

On this page you can find all versions of the php package talendor/elevenlabs-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package elevenlabs-api

Laravel ElevenLabs Voice Generation Wrapper

This is a Laravel package that serves as a wrapper for ElevenLabs Voice Generation API. It provides an easy-to-use interface for generating voices based on provided content.

Installation

You can install the package via Composer. Run the following command:

Usage

To get started, make sure to set up your ElevenLabs API key. You can do this by adding the following key to your .env file:

You can then use the package by accessing the ElevenLabsClient instance. For example, you can add the following route to your web.php or api.php file to test that the library is working:

   

Voice Class

Namespace

Talendor\ElevenLabsClient\Voice

Class Description

The Voice class is a part of the Talendor\ElevenLabsClient\Voice namespace. It implements the VoiceInterface.

getAll()

Retrieve all the available voices.


getVoice(string $voice_id)

Returns metadata about a specific voice.


defaultSettings()

Gets the default settings for voices.


voiceSettings(string $voice_id)


addVoice(string $name, ?string $description, string $files, ?string $labels = "American")

Add a new voice to your collection of voices in VoiceLab.

Parameters:


editVoice(string $voice_id, string $name, ?string $description, ?string $files, ?string $labels = "American")

Edit a voice in your collection of voices in VoiceLab.

Parameters:


deleteVoice(string $voice_id)

Delete a specific voice from your collection of voices in VoiceLab.

Parameters:

   

TextToSpeech class

Namespace

Talendor\ElevenLabsClient\TextToSpeech

Class Description

The TextToSpeech class is a part of the Talendor\ElevenLabsClient\TextToSpeech namespace. It implements the TextToSpeechInterface.

generate(string $content, string $voice_id , ?bool $optimize_latency, ?string $model_id, ?array $voice_settings = [])


generate_stream(string $content, string $voice_id , ?bool $optimize_latency, ?string $model_id , ?array $voice_settings = [])

   

History

Namespace

Talendor\ElevenLabsClient\History

Class Description

The History class is a part of the Talendor\ElevenLabsClient\History namespace. It implements the HistoryInterface.

getHistory()

Returns metadata about all your generated audio.


getHistoryItem(string $history_item_id)

Returns information about a history item by its ID.

Parameters


getHistoryItemAudio(string $history_item_id, string $fileName)

Returns the audio of a history item.

Parameters


deleteHistoryItem(string $history_item_id)

Delete a history item by its ID.

Parameters


downloadHistory(array $history_items, string $filename)

Download one or more history items. If one history item ID is provided, a single audio file will be returned. If multiple history item IDs are provided, the history items will be packed into a .zip file.

Parameters

     

Models Class

Available Methods

getModels()

Gets a list of available models.

Return Type: array

   

User Class

Namespace

Talendor\ElevenLabsClient\User

Class Description

The User class is a part of the Talendor\ElevenLabsClient\User namespace. It implements the UserInterface.

Available Methods

getUserInfo()

Gets information about the user.

Return Type: array

Description: This method retrieves information about the current user. It sends a GET request to the user endpoint and returns the decoded response data as an array.

getUserSubscription()

Gets extended information about the user's subscription.

Return Type: array

Description: This method retrieves extended information about the current user's subscription. It sends a GET request to the user/subscription endpoint and returns the decoded response data as an array.

   

Feel free to use these methods in your Laravel application to interact with the ElevenLabs Voice Generation API.


All versions of elevenlabs-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
guzzlehttp/guzzle Version ^7.7
illuminate/support Version ^10.13
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package talendor/elevenlabs-api contains the following files

Loading the files please wait ....