Download the PHP package ang3/aws-polly-bundle without Composer
On this page you can find all versions of the php package ang3/aws-polly-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ang3/aws-polly-bundle
More information about ang3/aws-polly-bundle
Files in ang3/aws-polly-bundle
Package aws-polly-bundle
Short Description AWS Polly bundle for Symfony apps
License proprietary
Homepage https://github.com/Ang3/aws-polly-bundle
Informations about the package aws-polly-bundle
AWS Polly bundle
This bundle integrates AWS Polly to your project. It installs the AWS SDK for PHP for the client and the AsyncAws Bundle for credentials.
Features
- Client
- Speech synthesizer
Installation
Step 1: Download the Bundle
Open a command console, enter your app directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Configure the bundle
Make sure you have configured the bundle AsyncAws, especially for authentication.
Create the file config/packages/ang3_aws_polly.yaml
, and add the contents below:
Make sure to replace YOUR_REGION
by your AWS settings.
Be aware some voices are available only on specific regions or engine. Please refer to the AWS documentation.
Usage
Client
Public service ID: ang3.aws_polly.client
To use the client, get it by dependency injection:
Speech synthesizer
Public service ID: ang3.aws_polly.speech_synthesizer
To synthesize a speech, use dependency injection:
Then, synthesize a speech with your text (mp3):
The function returns a secured URL to the MP3 file.
That's it!
All versions of aws-polly-bundle with dependencies
async-aws/async-aws-bundle Version ^1.10
aws/aws-sdk-php Version ^3.129
symfony/config Version ^6.0
symfony/dependency-injection Version ^6.0
symfony/http-kernel Version ^6.0