problem with festival tts in php script

hi,
Im using XAMPP package to develop my php scripts locally.(at location /opt/lampp)
And there’s php-cli package installed using repo (at location /usr/bin/php) on ubuntu 11.04.

I’m having problem with executing “text2wave” using php exec function.

Heres a simplified version of what im trying to execute

test.php
[php]<?php
exec(“text2wave -o test.wav -scale 50 test.txt”);
echo “Done!”;
?>
[/php]

so the problem is

when I tried to execute test.php from default location(that is my home directory) script is working fine

user@machine ~ $ php test.php Done!user@machine ~ $ls Desktop Pictures Templates test.txt Videos Documents Downloads Music TC test.php test.wav

but when i tried the same script from XAMPP , Im getting following error

user@machine /opt/lampp/bin $ php /home/user/test.php SIOD ERROR: could not open file test.txt Done!user@machine /opt/lampp/bin $

So the problem seems to be with php interpreter configs ( one located at /usr/bin and other /opt/lampp/bin) unless they both are the same.

Any help would be greatly appreciated.

Sponsor our Newsletter | Privacy Policy | Terms of Service