zaf / asterisk-googletts

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

The speed parameter has no effect on playback speed #4

Closed coaxial closed 11 years ago

coaxial commented 11 years ago

Hi,

Using Asterisk 11, I called the following extension:

exten => *100,1,agi(googletts.agi,"This is a speed test, speed 4",en,,4)
    same => n,agi(googletts.agi,"This is a speed test, speed 2",en,,2)
    same => n,agi(googletts.agi,"This is a speed test, speed 1",en,,1)
    same => n,agi(googletts.agi,"This is a speed test, speed 10",en,,10)
    same => n,Hangup()

There was no difference in playback speed for any of the iterations. They all sounded exactly the same.

core show version Asterisk 11.1.0 built by abuild @ build22 on a x86_64 running Linux on 2012-12-21 23:25:47 UTC

cat /proc/version Linux version 3.4.11-2.16-default (geeko@buildhost) (gcc version 4.7.1 20120723 [gcc-4_7-branch revision 189773](SUSE Linux) ) #1 SMP Wed Sep 26 17:05:00 UTC 2012 (259fc87)

perl -v This is perl 5, version 16, subversion 0 (v5.16.0) built for x86_64-linux-thread-multi

sox --version sox: SoX v14.4.0

mpg123 --version mpg123 1.14.4

zaf commented 11 years ago

I can't reproduce the problem here. Can you please enable debug output in the script ( '$debug = 1' in line 70 ) set debug and verbosity levels in asterisk to 3 and send me the full asterisk log? Also please make sure you are using the latest trunk version of the script.

coaxial commented 11 years ago

Right, it seems there was a mixup between the latest version and the one I was using. I thought it was the latest version but it wasn't, maybe I screwed up when pulling the file from your repo.

Tried again with the latest version and it's fine. Sorry about that!