PHP code example of fmujie / baidu-speech-synthesis
1. Go to this page and download the library: Download fmujie/baidu-speech-synthesis 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/ */
fmujie / baidu-speech-synthesis example snippets
Fmujie\BaiduSpeech\BaiduSpeechServiceProvider::class,
$BaiduSpeech = new Fmujie\BaiduSpeech\BaiduSpeech();
$BaiduSpeech->combine($text, $userID, $lan, $speed, $pitch, $volume, $person);
shell
php artisan vendor:publish