I have tried by writing the below command in php file and then run that php file from console as well as crontab.The code which i have in php file is like
#!/usr/bin/php -q
<?php
system ("/usr/local/sbin/googletts-cli.pl -o /var/lib/asterisk/sounds/asdapp/test.wav -s 0.9 -l en -t 'Some text is written here'");
?>
If i run this php file from consol then it is working fine and generate the wav file.But if i put that php file in crontab like
* * * * * /var/lib/asterisk/agi-bin/asdapp/jagu_test.php
Then it is not generating wav file.
I have also tried the solution which is given in below links:
Why is crontab not executing my PHP script?
PHP script works from command line, not from cron
I have tried with various way for run this php file from crontab but can not get any success.Can anybody know what is the exactly issue or any solution?