zaf / asterisk-googletts

Asterisk AGI script that uses Google's translate text to speech service.
GNU General Public License v2.0
214 stars 126 forks source link

Unexpected result using googletts #28

Closed mobilyws closed 8 years ago

mobilyws commented 8 years ago

Hello zaf , Thanks for your effort here ,

can you assist me to found solution for my issue ?

perl /var/lib/asterisk/agi-bin/googletts.agi -l de -t "HalloHallo" -o test.wav

Use of uninitialized value $AGI{"request"} in concatenation (.) or string at /var/lib/asterisk/agi-bin/googletts.agi line 96, line 1. CHANNEL STATUS

-- : Unexpected result: GET FULL VARIABLE ${CHANNEL(audionativeformat)}

-- : Unexpected result:

STREAM FILE /tmp/ggl_dSfXLX1G "" -- : Unexpected result: -- : Failed to play /tmp/ggl_dSfXLX1G. NOOP " -- : Failed to play /tmp/ggl_dSfXLX1G." -- : Unexpected result: Died at /var/lib/asterisk/agi-bin/googletts.agi line 233, line 5.

zaf commented 8 years ago

Hello,

you are trying to use the AGI script instead of the cli app. The AGI script is supposed to be called from asterisk, not manually via the command line interface. You actually want to use the script 'googletts-cli.pl' found in the folder 'cli' in the source tree.

mobilyws commented 8 years ago

Thanks for instant replay ..