[asterisk-users] Speech recognition in asterisk using google voice API
Lefteris Zafiris
zaf.000 at gmail.com
Wed Jan 4 03:06:29 CST 2012
On 01/04/2012 07:51 AM, Bruce B wrote:
> And with recent version 14.3.2 I get:
>
> /usr/local/bin/sox FAIL formats: no handler for file extension `flac'
> -- speech-recog.agi: /usr/local/bin/sox failed: 512
> -- <SIP/5555-0000002e>AGI Script speech-recog.agi completed, returning 0
>
> Regards,
>
>
> On Wed, Jan 4, 2012 at 12:43 AM, Bruce B <bruceb444 at gmail.com> wrote:
>
>> Very interesting. I just tried to get it to work but it complains about
>> sox. Probably you used a different version of sox?
>>
>> *PBX-*CLI> /usr/bin/sox: invalid option -- -*
>> */usr/bin/sox: invalid option -- n*
>> */usr/bin/sox: invalid option -- o*
>> */usr/bin/sox: -r must be given a positive integer*
>> * -- speech-recog.agi: /usr/bin/sox failed: 512*
>>
>> I am using: *Package sox-12.18.1-1.el5_5.1.i386 *
>>
>> Thanks,
>>
>>
Note to self: "Never release anything asterisk related without testing
on RHEL/Centos 5"
Thank you for reporting this. I have replaced sox with flac and it seems
to work now on older platforms too (tested on Centos 5 with asterisk 1.4).
You can get the updated code here:
https://github.com/zaf/asterisk-speech-recog/tarball/master
----------------
Lefteris Zafiris
More information about the asterisk-users
mailing list