Download the PHP package lucianotonet/cartesia-php without Composer
On this page you can find all versions of the php package lucianotonet/cartesia-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cartesia-php
Cartesia PHP
Description
This PHP library provides a robust interface to interact with the Cartesia REST API, allowing you to seamlessly integrate Cartesia's advanced voice cloning and speech synthesis capabilities into your PHP applications. Please note that this library is not officially affiliated with Cartesia AI.
Key Features
- High-Quality Speech Synthesis: Convert text into natural and expressive speech using Cartesia's state-of-the-art models.
- Custom Voice Cloning: Create personalized synthetic voices that capture the unique essence and tone of your desired speakers.
- Simplified Voice Management: Easily manage your cloned voices, including listing, retrieving, updating, and deleting.
- Intuitive and User-Friendly Interface: The library offers a straightforward and well-documented interface, making integration with your PHP projects quick and easy.
Getting Started
Installation
The recommended way to install the Cartesia PHP library is via Composer:
Usage
Here's a basic example of how to use the library to generate speech from text:
Roadmap
- [x] API Status and Version
- [x] Create Voice
- [x] Delete Voice
- [x] Update Voice
- [x] Get Voice
- [x] List Voices
- [x] Clone Voice (Clip)
- [x] Mix Voices
- [x] Stream Speech (Bytes)
- [x] Stream Speech (Server-Sent Events)
- [ ] Stream Speech (WebSocket)
- [ ] Localize Voice
Running the examples
To run the examples provided in the examples
directory, copy the .env.example
file to .env
and update the CARTESIA_API_KEY
constant with your Cartesia API key:
Then, start the PHP server in the package root directory:
Now you can access the examples in your browser at http://127.0.0.1/examples/
.
Complete Documentation
For detailed information on all available features and options, please refer to the original REST API documentation: https://docs.cartesia.ai.
For the full source code and examples, visit the GitHub repository: https://github.com/lucianotonet/cartesia-php
Support
If you encounter any issues or have any questions about the library, please feel free to open an issue on GitHub. Contributions to the project are also welcome!