<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Le 06/07/2018 à 09:58, Mani Kanta Gadde a écrit :<br>
    <blockquote type="cite"
cite="mid:CABsJh0PQCkLjOXeN78eu7GSzECm50OK9QQeCZ+gN_eKVZ7C65A@mail.gmail.com">
      <div dir="ltr"><span
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hi, </span>
        <div
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">We
          are trying to stream audio coming from calls to an NLP engine
          to get the text transcription, for this we created a socket in<span> </span><u>app_mixmonitor.c</u> and
          we are writing audio frames to socket descriptor. We have
          tried with TCP(SOCK_STREAM) and UDP(SOCK_DGRAM) protocols to
          send the audio frames to the socket server. </div>
        <div
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br>
        </div>
        <div
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">We
          are using latest asterisk complied from GitHub source code
          (asterisk repo).</div>
        <div
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br>
        </div>
        <div
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Here
          are some of the suggestions I found on asterisk forums </div>
        <div
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><a
href="http://forums.asterisk.org/viewtopic.php?f=13&t=89365#p196720"
            target="_blank" style="color:rgb(17,85,204)"
            moz-do-not-send="true">http://forums.asterisk.org/viewtopic.php?f=13&t=89365#p196720</a><br>
        </div>
        <div
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">on
          this thread, it was suggested to use CHANSPY, but we have
          edited mixmonitor code to both record and stream in realtime,
          which has sufficed our needs.</div>
        <div
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br>
        </div>
        <div
style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Here
          is the socket code we used inside the<span> </span><u>mixmonitor_thread</u><span> </span>function
          in app_mixmonitor.c file.</div>
        <snip><br>
      </div>
      <!--'"--><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    As suggested in the forum, it is probably easier to do this with the
    ChanSpy application, combined with a UnicastRTP channel.<br>
    <br>
    Regards<br>
    <br>
    Jean Aunis<br>
  </body>
</html>