This is because you need to add /tmp to the STREAM command, ie:

print "STREAM FILE /tmp/$tmpname \"$intkey\"\n";

$tmpname seems to not contain the path, so it will look in
/var/lib/asterisk/sounds for the file...

This at least made it work for me... (After fixing some other things to make
it work with asterisk 1.2...)

BR,
Torbjörn Abrahamsson



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lefteris
Zafiris
Sent: den 1 december 2011 18:34
To: [email protected]
Subject: Re: [asterisk-users] AGI script that uses google's text to speech
engine

On Thu, 1 Dec 2011 09:43:29 -0500
"bakko" <[email protected]> wrote:

> Hello,
> 
> when I use the Agi, sometimes not play the phrase:
> 
> WARNING[30391]: file.c:650 ast_openstream_full: File ggl_U0sBo0 does
> not exist in any format
> 
> Regards

Seems like the script failed to convert the mp3 data that gets from
google to raw slinear. In that case mpg123 or sox
failed to run. It would be very helpful if you could send the full
console output with verbosity set to 3. Please reply to my mail address
so we don't pollute the list.

Thanks for the feedback

----------------
Lefteris Zafiris
  


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to