PHP code example of cviniciussdias / php-text-to-speech

1. Go to this page and download the library: Download cviniciussdias/php-text-to-speech 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/ */

    

cviniciussdias / php-text-to-speech example snippets




ker = createSpeaker();
$speaker->speak('Text you want it to speak');
shell
$ docker rum --rm -itv $(pwd):/app -w /app --device /dev/snd php:latest php example.php