zaf / asterisk-googletts

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

Concatenation error and sox parameter factor ? #18

Closed FrBillyD closed 9 years ago

FrBillyD commented 9 years ago

Hi, I have a trouble with this plug-in. I used this script many times before, but now, it no longer works. I have errors when I try to use it with command line. My errors is :

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

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

 -- : Unexpected result:

/usr/bin/sox FAIL tempo: parameter `factor' must be between 0.1 and 100
/usr/bin/sox FAIL tempo: usage: [-q] [-m | -s | -l] factor [segment-ms [search-ms [overlap-ms]]]
 -- : /usr/bin/sox failed: 256

My command is :

/var/lib/asterisk/agi-bin/googletts.agi -l fr -r 8000 -f my_text_file.txt -o my_tts_voice_file.wav

I am on Raspbx system (Raspbian with Debian 8). I installed packages needed before.

Thank you for your help.

FrBillyD commented 9 years ago

P.S.: I tried to change "-l fr" by "-l fr-FR" but I've seen this was changed since last updates.

FrBillyD commented 9 years ago

Ok, i've updated my system and changed the script name and it's ok now... Sorry for inconvenience... Thank you.