<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi there,<br>
    <br>
    I've developed an agi script a while ago to use google speech
    recognition and by then I've used
    <a class="moz-txt-link-freetext" href="http://legroom.net/files/software/convtoflac.sh">http://legroom.net/files/software/convtoflac.sh</a>&nbsp; to convert files
    from wav to flac.<br>
    You can the use the command:<br>
    <br>
    <b>/usr/local/bin/convtoflac.sh -o
      /var/lib/asterisk/sounds/myfile.wav</b><br>
    It will then create&nbsp; create a flac file in the same directory as the
    source file.<br>
    <br>
    I hope it helps.<br>
    regards<br>
    Lobito<br>
    <br>
    On 1/4/2012 5:51 AM, Bruce B wrote:
    <blockquote
cite="mid:CAJyE_uVb6nD2pS2H1FFtdrS03=Y+tM5phSS6TxAdkC8NEucnkA@mail.gmail.com"
      type="cite">And with recent version 14.3.2 I get:
      <div><br>
      </div>
      <div>
        <div>/usr/local/bin/sox FAIL formats: no handler for file
          extension `flac'</div>
        <div>&nbsp;-- speech-recog.agi: /usr/local/bin/sox failed: 512</div>
        <div>&nbsp; &nbsp; -- &lt;SIP/5555-0000002e&gt;AGI Script speech-recog.agi
          completed, returning 0</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div><br>
        </div>
        <br>
        <div class="gmail_quote">On Wed, Jan 4, 2012 at 12:43 AM, Bruce
          B <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:bruceb444@gmail.com">bruceb444@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">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>&nbsp;-- speech-recog.agi: /usr/bin/sox failed: 512</b></div>
              <div><br>
              </div>
              <div>I am using:&nbsp;<b>Package sox-12.18.1-1.el5_5.1.i386&nbsp;</b></div>
              <div><br>
              </div>
              <div>Thanks,
                <div>
                  <div class="h5"><br>
                    <br>
                    <div class="gmail_quote">On Tue, Jan 3, 2012 at 9:42
                      PM, Lefteris Zafiris <span dir="ltr">&lt;<a
                          moz-do-not-send="true"
                          href="mailto:zaf.000@gmail.com"
                          target="_blank">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 moz-do-not-send="true"
                          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 moz-do-not-send="true"
                          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
                            moz-do-not-send="true"
                            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>
                          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a moz-do-not-send="true"
                            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>
                          &nbsp; <a moz-do-not-send="true"
                            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>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
    </blockquote>
  </body>
</html>