Closed coaxial closed 11 years ago
There seem to be some problems with the detection function. As a temporary fix try setting the sample rate in a fixed value which disables the auto-detection. To do so just edit line 63 of the script and set the variable $samplerate to the proper value depending on the codes you are using (usually 8000).
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!
Hi,
The sample rate is set at 8000 in my googletts.agi script, yet when calling the script from the dialplan, the console has this to say:
Or even
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