[asterisk-users] Speech recognition in asterisk using google voice API

Julian Lyndon-Smith asterisk at dotr.com
Wed Jan 4 08:07:16 CST 2012


this looks great - is there any chance of coverting the googletts.agi
to use flac as well ?

Julian

On 4 January 2012 09:06, Lefteris Zafiris <zaf.000 at gmail.com> wrote:
> 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
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users



-- 
Julian Lyndon-Smith
IT Director, Dot R Limited

"I don’t care if it works on your machine!  We are not shipping your machine!”

The kangaroo dances: http://www.youtube.com/watch?v=MAWl5iYOaUg



More information about the asterisk-users mailing list