From: kronos on
I forgot that PHP saves stuff in the /tmp directory (in my case
/var/www/html/tmp [with permissins/owner set accordingly].

So, it works with:


$command = "/usr/bin/espeak -g0 -ven+m3 -p22 -s170 'Hallo Toofie' -w



Btw, it sounds pretty awful!

On Tue, 29 Jun 2010 17:46:01 -0400, <kronos(a)> wrote:

> Hi,
> I'm trying to utilize EXEC to have some text from a db query converted
> to a wav file using 'espeak'.
> The 'espeak' command works admirably by cli, but no matter what I do,
> exec does not
> seem to function on my Linux box, even though safe_mode is off.
> I've stripped the db query out, and ran a simplified text, 'Hallo
> Toofie' in the code. First off,
> I made sure that the espeak code worked by cli. It does.
> The code:
> <?php
> $command = "/usr/bin/espeak -g0 -ven+m3 -p22 -s170 'Hallo Toofie' -w
> aba.wav";
> exec($command);
> ?>
> I've tried every combination I can think of including using 'espeak'
> without '/usr/bin',
> directing wav output to '-f /home/kronos/aba.wav'.
> What am I doing wrong?
> Any help, pointers, suggestions appreciated!

Using Opera's revolutionary e-mail client:
Pages: 1
Prev: Integers
Next: mail() + localhost