Very interesting. I just tried to get it to work but it complains about sox. Probably you used a different version of sox?<div><br></div><div><div><b>PBX-*CLI&gt; /usr/bin/sox: invalid option -- -</b></div><div><b>/usr/bin/sox: invalid option -- n</b></div>

<div><b>/usr/bin/sox: invalid option -- o</b></div><div><b>/usr/bin/sox: -r must be given a positive integer</b></div><div><b> -- speech-recog.agi: /usr/bin/sox failed: 512</b></div><div><br></div><div>I am using: <b>Package sox-12.18.1-1.el5_5.1.i386 </b></div>

<div><br></div><div>Thanks,<br><br><div class="gmail_quote">On Tue, Jan 3, 2012 at 9:42 PM, Lefteris Zafiris <span dir="ltr">&lt;<a href="mailto:zaf.000@gmail.com">zaf.000@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello,<br>
I have written an agi script that uses google voice API for voice<br>
recognition.<br>
The script records from the current channel untill the pound key (#) is<br>
pressed or the timeout (15 seconds) is reached. The recording is send<br>
over to google speech recognition service and the returned text string<br>
is assigned to a channel variable.<br>
More info and dialplan examples can be found in the README file:<br>
<a href="https://raw.github.com/zaf/asterisk-speech-recog/master/README" target="_blank">https://raw.github.com/zaf/asterisk-speech-recog/master/README</a><br>
<br>
The script is available here:<br>
<a href="https://github.com/zaf/asterisk-speech-recog" target="_blank">https://github.com/zaf/asterisk-speech-recog</a><br>
<br>
The code is still young and not roughly tested so comments, suggestions<br>
and bug reports are more than welcome.<br>
<br>
----------------<br>
Lefteris Zafiris<br>
<font color="#888888"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></blockquote></div><br></div></div>