in reply to Re: I'm banging my head with simple trick
in thread I'm banging my head with simple trick

Hi,

thanks for code. That was exactly my startup, but the problem arised when I tried to change Festival's default voice. I managed to do it with say-text.pl, but am still struggling with get-weather.pl. I have strange feeling that Perl scripts are somehow in different environment when run from Asterisk that plain run...

Are you using your code with latest Asterisk and Festival ? If you do, then I'm doing something wrong...

Regards,

Robert.

  • Comment on Re^2: I'm banging my head with simple trick

Replies are listed 'Best First'.
Re^3: I'm banging my head with simple trick
by tmoertel (Chaplain) on Oct 07, 2004 at 00:58 UTC
    I have strange feeling that Perl scripts are somehow in different environment when run from Asterisk that plain run.
    Yes, that's usually the case. When you're testing your scripts from the command line, they are running as you and have the same privileges as your login shell. However, when run by Asterisk, which is often installed under its own account, they are run as the Asterisk user and with its privileges.

    For this reason, it's a good idea to double-check any files you need to access or programs you need to run to make sure that their permissions allow access by Asterisk's account. In particular, check out the permissions of files and directories in Festival's voices/us/cmu_us_slt_arctic_hts/ directory.

    Per your other question, no, I'm not using the most recent Asterisk and Festival releases. I'm using the stock Fedora Core 1 Festival and a development version of Asterisk that I built about six months ago.

    Cheers,
    Tom