Download the PHP package ardagnsrn/elevenlabs-laravel without Composer

On this page you can find all versions of the php package ardagnsrn/elevenlabs-laravel. 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-laravel

elevenlabs-js

ElevenLabs.io API for PHP Laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is an Open Source PHP Laravel package for elevenlabs.io Text to Speech API. You can find the Official API document here: https://api.elevenlabs.io/docs

Buy me a coffee

Whether you use this project, have learned something from it, or just like it, please consider supporting it by buying me a coffee, so I can dedicate more time on open-source projects like this :)

Buy Me A Coffee

Table of Contents

Installation

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Supported Methods

Method Parameters EndPoint HTTP Method
textToSpeech() voiceId, text, modelId, voiceSettings /v1/text-to-speech/{voice_id}/stream POST
getModels() N/A /v1/models GET

Parameters

Parameter Type Description Required Default
voiceId String The ID of the voice to use. You can get a list of available voices using getVoices(). Yes N/A
text String The text to convert to speech. Yes N/A
modelId String The ID of the model to use. You can get a list of available models using getModels(). No eleven_multilingual_v2
voiceSettings Array The settings to use for the voice. No ['stability' => 0.95, 'similarity_boost' => 0.75, 'style' => 0.06, 'use_speaker_boost' => true]

Voice Settings

Parameter Type Description Default
stability Float The stability of the voice. 0.95
similarity_boost Float The similarity boost of the voice. 0.75
style Float The style of the voice. 0.06
use_speaker_boost Boolean Whether to use speaker boost or not. true

Usage

textToSpeech() Method

Generate a text to speech audio file. You can either save the file or get the pipe and do whatever you want with it.

getModels() Method

Get a list of available models.

Testing

Other Languages

Also, you can find the other languages of this package here:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of elevenlabs-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^10.0|^11.0|^12.0
spatie/laravel-package-tools Version ^1.14.0
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 ardagnsrn/elevenlabs-laravel contains the following files

Loading the files please wait ....