[asterisk-users] Regarding Text To Speech conversion

Steve Edwards asterisk.org at sedwards.com
Mon Mar 9 10:33:04 CDT 2015

> On Monday 09 Mar 2015, janani m wrote:

>> The Error Which I face I have attached.

Please do not attach pictures. Please cut and past text.

On Mon, 9 Mar 2015, A J Stiles wrote:

> That's a very common error and what it means is, the AGI script 
> "/var/lib/asterisk/agi-bin/googletts.agi"  either has an incorrect #! 
> line, or needs chmod +x run on it.
> What do you get if you run
> # ls -l /var/lib/asterisk/agi-bin/googletts.agi
> and
> # head -n1 /var/lib/asterisk/agi-bin/googletts.agi
> respectively?

Another possibility if Windows boxes have been involved in 
downloading/extracting/copying the script -- incorrect line endings.

What does:

 	od -c /var/lib/asterisk/agi-bin/googletts.agi | head --lines=2

look like. Any '\r \n' (Windows line ending) where '\n' (Unix line ending) 
should be?

Thanks in advance,
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

More information about the asterisk-users mailing list