Download the PHP package afaya/edge-tts without Composer
On this page you can find all versions of the php package afaya/edge-tts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download afaya/edge-tts
More information about afaya/edge-tts
Files in afaya/edge-tts
Package edge-tts
Short Description Edge TTS is a PHP package that allows access to the online text-to-speech service used by Microsoft Edge without the need for Microsoft Edge, Windows, or an API key.
License GPL-3.0+
Informations about the package edge-tts
Edge TTS
Overview
Edge TTS is a powerful Text-to-Speech (TTS) package for PHP that leverages Microsoft's Edge capabilities. This package allows you to synthesize speech from text and manage voice options easily through a command-line interface (CLI).
Features
- Text-to-Speech: Convert text into natural-sounding speech using Microsoft Edge's TTS capabilities.
- Multiple Voices: Access a variety of voices to suit your project's needs.
- Audio Export Options: Export synthesized audio in different formats (raw, base64, or directly to a file).
- Command-Line Interface: Use a simple CLI for easy access to functionality.
- Easy Integration: Modular structure allows for easy inclusion in existing PHP projects.
Command-Line Interface: Use a simple CLI for easy access to functionality. Easy Integration: Modular structure allows for easy inclusion in existing PHP projects.
Installation
You can install Edge TTS via Composer. Run the following command in your terminal:
Usage
Command-Line Interface To synthesize speech from text, use the following command:
To list available voices, run:
Integration into Your Project
To use Edge TTS in your PHP project, include the autoload file:
Export Options
After synthesizing speech, you can export the audio in various formats:
- : Returns the audio as a Base64 string.
- : Saves the audio to a specified file (e.g., "output.wav").
- : Returns the raw audio stream.
Testing
Contributing
We welcome contributions! Please read our CONTRIBUTING.md for guidelines on how to contribute to this project.
License
This project is licensed under the GNU General Public License v3 (GPLv3).
Acknowledgments
We would like to extend our gratitude to the developers and contributors of the following projects for their inspiration and groundwork:
All versions of edge-tts with dependencies
symfony/console Version ^6.4 || ^7.1
ratchet/pawl Version ^0.4.1
ramsey/uuid Version ^4.7
react/event-loop Version ^1.5