I am running the espeak from linux in terminal which is working completely fine. My problem is that i want to run the espeak from php(in xampp).
<?php
$a="espeak sometext";
system($a);
?>
but that is not working.and is not producing any sound
where as in windows this thing is working absolutely fine with espeak command line program when called in cmd by php script the code is
<?php
$a='espeak "your text"';
system($a);
?>
can you guys please help me in running this in linux as well. Thanks in advance.
use
shell_exec()
function instead of using system in LINUX