<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 19, 2021 at 4:36 AM Alexander Perkins <<a href="mailto:alexanderhenryperkins@gmail.com">alexanderhenryperkins@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi All.  We have a unique requirement (I think)...  We need to stream the media to another server for analysis while the call is taking place.  So, basically, real-time analysis.  Can somebody point me in the right direction?<br></div></blockquote><div><br></div><div>You could try mod_audio_fork:</div><div>  <a href="https://github.com/drachtio/drachtio-freeswitch-modules/blob/main/modules/mod_audio_fork/README.md">https://github.com/drachtio/drachtio-freeswitch-modules/blob/main/modules/mod_audio_fork/README.md</a></div><div>you will need to build a custom freeswitch version with libwebsockets support (<a href="https://github.com/drachtio/drachtio-freeswitch-modules">https://github.com/drachtio/drachtio-freeswitch-modules</a>).</div><div><br></div><div>But if you are stuck with an existing version of freeswitch, you could use mod_shout record_session as explained here:<br></div><div>  <a href="https://github.com/MayamaTakeshi/shout_to_gsr">https://github.com/MayamaTakeshi/shout_to_gsr</a></div><div>However, shoutcast protocol uses mp3 for data transfer so there is a performance penalty (mod_audio_fork sends the data as Linear16 which is the format used by the FS internally so there is no transcoding penalty).</div><div><br></div><div><br></div><div><br></div><div><br></div></div></div>