PHP code example of tbetool / ibm-watson-tts
1. Go to this page and download the library: Download tbetool/ibm-watson-tts 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 / ibm-watson-tts example snippets
$path = '/aboslute/path/to/directory';
$watson->setOutputPath($path);
$file = $watson->tts('Hello World');
$watson->setLanguage('en-US');