First, Clone this Repo into your local machine
git clone https://github.com/raj4rachit/PDF-Read-Aloud.git
Rename to .env.example file to .env file and add related information like Database, App URl, etc..
After run this command
composer install
Run Database migration
Next, please add these keys to your .env
file:
GOOGLE_APPLICATION_CREDENTIALS="Path to your google cloud application credential json file"
Download ffmpeg.exe for windows from this URL (https://phoenixnap.com/kb/ffmpeg-windows)
For linux using the following command:
sudo apt-get install ffmpeg
please add these ffempg.exe file path to your .env
file:
FFMPEG_PATH="Path to your ffepeg.exe file"
After change command in TTSController.php file on line# 144
// For windows
$ffmpegPath = env('FFMPEG_PATH');; //storage_path('app/public/ffmpeg.exe');
$command = "\"$ffmpegPath\" -y -f concat -safe 0 -i " . escapeshellarg($concatFile) . " -c copy " . escapeshellarg($outputPath);
// For Linux
//$command = 'ffmpeg -y -f concat -safe 0 -i ' . escapeshellarg($concatFile) . ' -c copy ' . escapeshellarg($outputPath);
Authentication Please see our Authentication guide for more information on authenticating your client.
The MIT License (MIT). Please see LICENSE for more information.