PHP code example of tbetool / aws-polly

1. Go to this page and download the library: Download tbetool/aws-polly library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tbetool / aws-polly example snippets


$path = '/aboslute/path/to/directory';

$polly->setOutputPath($path);

$file = $polly->textToVoice(
    'Hello World',
    $param
);