Recommend this page to a friend! |
Classes of Arda Günsüren | ElevenLabs Laravel | README.md | Download |
|
Download
ElevenLabs.io API for PHP LaravelThis 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 coffeeWhether 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 :) <a href="https://www.buymeacoffee.com/ardagnsrn" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a> Table of Contents
InstallationYou 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 |
|------------------|-----------------------------------------------|----------------------------------------|-------------|
| Parameters| Parameter | Type | Description | Required | Default |
|---------------|--------|-----------------------------------------------------------------------------------------|----------|---------------------------------------------------------------------------------------------------|
| voiceId | String | The ID of the voice to use. You can get a list of available voices using 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 | UsagetextToSpeech() MethodGenerate a text to speech audio file. You can either save the file or get the pipe and do whatever you want with it.
getModels() MethodGet a list of available models.
Testing
Other LanguagesAlso, you can find the other languages of this package here: - ElevenLabs API For NodeJS (elevenlabs-js) - ElevenLabs API For PHP Laravel (elevenlabs-laravel) ChangelogPlease see CHANGELOG for more information on what has changed recently. CreditsLicenseThe MIT License (MIT). Please see License File for more information. |