i've been writing a simple text to speech php script that works with festvox, i've been trying to use it but it seems the part i cant get is running the text to wave converter, shell script. here is the code i've created so far,
<form action="index.php" method="get">
Say: <input type="text" name="say" />
<input type="submit" />
</form>
<?php
$myFile = "test.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $_GET["say"];
fwrite($fh, $stringData);
fclose($fh);
shell_exec('text2wave /var/www/text.txt -otype aiff -o /var/www/out.aiff');
?>
so i was wondering what possible errors i could have mad, any help?