Le 06/07/2018 à 09:58, Mani Kanta Gadde a écrit :
Hi,
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_app_mixmonitor.c_ 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.

We are using latest asterisk complied from GitHub source code (asterisk repo).

Here are some of the suggestions I found on asterisk forums
http://forums.asterisk.org/viewtopic.php?f=13&t=89365#p196720
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.

Here is the socket code we used inside the_mixmonitor_thread_function in app_mixmonitor.c file.
<snip>



As suggested in the forum, it is probably easier to do this with the ChanSpy application, combined with a UnicastRTP channel.

Regards

Jean Aunis
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to