[Freeswitch-users] Send RTP to external server

Mickael Hubert mickael at winlux.fr
Wed Apr 18 15:21:30 UTC 2018


Hi all,
I worked on this POC script:
https://github.com/Mickaelh51/rtp_parser/blob/master/pyshark_rtp_test.py
It can parse pcap file with real sip calls.

I can create a raw file with audio data (one file by leg), It's exactly I
want do do ;)

But now I wan to stream this to kaldi with websocket... it's hard :( (for
me)

Do you think I'm on the good way with this POC ?

I can see other ways maybe:
- https://freeswitch.org/confluence/display/FREESWITCH/mod_vlc
- https://freeswitch.org/confluence/display/FREESWITCH/mod_shout

Maybe it's easier to create a "gateway script" to read vlc or shout flow
and send it to kaldi ?

What do you think about this new idea ?

The last chance: hack one of theses modules to put audio stream to kaldi...
it's not the good way for my c++ skills ;)
https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/src/mod/asr_tts

thanks in advance

2018-03-02 11:09 GMT+01:00 Mickael Hubert <mickael at winlux.fr>:

> Hi
> thanks a lot for your answers.
> Do you split media stream ? I want to stream only caller voice for
> exemple. My ASR works better if it recognizes only one stream ;)
> thanks in advance
>
> 2018-03-01 17:24 GMT+01:00 Stefano Favaro <stefano.favaro at edistar.com>:
>
>>
>> Hello, I'm currently using:
>>
>>
>> Freeswitch with mod_unimrcp and the plugin from UniMRCP (
>> http://unimrcp.org/gsr)
>>
>>
>> It connects to Google Speech API for audio transcription in realtime
>> using mrcp.
>>
>>
>> Stefano.
>>
>>
>>
>>
>>
>> ------------------------------
>> *Da: *"Robert Mundkowsky" <rmundkowsky at ets.org>
>> *A: *"FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
>> *Inviato: *Mercoledì, 28 febbraio 2018 20:17:01
>> *Oggetto: *Re: [Freeswitch-users] Send RTP to external server
>>
>>
>> It is actually fairly common to want to stream audio/video to somewhere
>> to process the data in real time, rather than waiting until recording is
>> finished.
>>
>>
>>
>> For example, if want to convert audio to text (ASR) then you do not want
>> to wait until the conference is over before you start the ASR.  Imagine,
>> your ASR takes 1 minute to convert 1 minute of audio then if a conference
>> is 30 minutes long, you would have to wait another 30 minutes for the ASR
>> to finish before you could do something with the text.
>>
>>
>>
>> I believe you can use gstreamer (https://gstreamer.freedesktop.org/) to
>> handle receiving the RTP from a FreeSWITCH conference.  I think it allows
>> you to sample frames if you want to get frames from video granted I think
>> you are only interested in audio, but I think you still have to develop a
>> daemon that understand SIP/RTP in order to talk to FreeSWITCH.  Another
>> approach might be to create a plugin for the Unimrcp (MRCPv2 server
>> http://www.unimrcp.org/ ) and talk to the FreeSWITCH using their mrcp
>> module and tight that to the conference call.  You might be able to hack
>> the Kaldi plugin for Unimrcp to do what you want.
>>
>>
>>
>> Robert
>>
>>
>>
>> *From:* FreeSWITCH-users [mailto:freeswitch-users-bounc
>> es at lists.freeswitch.org] *On Behalf Of *Tihomir Culjaga
>> *Sent:* Wednesday, February 28, 2018 1:47 PM
>> *To:* FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>> *Subject:* Re: [Freeswitch-users] Send RTP to external server
>>
>>
>>
>> why do you want to stream... isn't it enough just to rsync the file once
>> the call is finished ?
>>
>>
>>
>> On 28 February 2018 at 16:16, Mickael Hubert <mickael at winlux.fr> wrote:
>>
>> Hi
>> thanks a lot for your answer.
>>
>> But I want to send stream to external server, not record in audio file. i
>> can use record to "capture" the voice, but to stream it, it's more
>> complicated ;)
>>
>> thanks in advance
>>
>>
>>
>> 2018-02-21 0:50 GMT+01:00 Brian West <brian at freeswitch.com>:
>>
>> you can already do this without SIPREC in freeswitch. By setting the
>> RECORD_READ_ONLY or RECORD_WRITE_ONLY variables.
>>
>>
>>
>> /b
>>
>>
>>
>>
>>
>> On Fri, Feb 16, 2018 at 10:33 AM, Mickael Hubert <mickael at winlux.fr>
>> wrote:
>>
>> Hi list,
>> I want to record each call through freeswitch. But i want record only
>> caller (SSRC 1) OR callee (SSRC 2) voice (not both).
>>
>> I read about SIPREC, Jack, etc ... not interesting
>>
>> Do you have a idea for me please ?
>>
>> Thanks in advance
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitchsolutions.com&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=6wPzLzP8i%2FDBCXxEyl%2F7xIPJ2hYQy9C2NNGXSiRvfKc%3D&reserved=0>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=36oG%2FMWaCRXZ%2BfGlz79y3Uv80cWbJvOvf3UtJrUZgKU%3D&reserved=0>
>> http://confluence.freeswitch.org
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fconfluence.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=Fvt9Vq6L9eMPg6cfmpWZURJdemUPRGBOTkXsCKDC5yk%3D&reserved=0>
>> http://www.cluecon.com
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cluecon.com&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=Qe%2F2MQhf1lJmX1SfvyqVqxdnaxIdYzffbuf7eNPrSr0%3D&reserved=0>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freeswitch.org%2Fmailman%2Flistinfo%2Ffreeswitch-users&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=mdeOaiFaQ3UDDrIaOowtRBUXi4QcX5qlplMJAEP6eHM%3D&reserved=0>
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freeswitch.org%2Fmailman%2Foptions%2Ffreeswitch-users&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=KqGoGGxqpgJFj494jDK%2FcI3kEsImyIWHdBZnnRW7FX4%3D&reserved=0>
>> http://www.freeswitch.org
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=36oG%2FMWaCRXZ%2BfGlz79y3Uv80cWbJvOvf3UtJrUZgKU%3D&reserved=0>
>>
>>
>>
>>
>>
>> --
>>
>> Brian West | Co-founder and Developer
>>
>> Need Commercial support? email sales at freeswitch.com
>>
>> FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmaps.google.com%2F%3Fq%3D17345%2BCivic%2BDrive%2B%25232531%2BBrookfield%2C%2BWI%2B53045%26entry%3Dgmail%26source%3Dg&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=nCSm%2Bs80cyaROgBIPx16xnSicG4Sblr1FrHsg4Xp81E%3D&reserved=0>
>>
>> Email: brian at freeswitch.com
>>
>> Mobile: 918-424-9378 <(918)%20424-9378>
>>
>> Website: https://www.FreeSWITCH.com
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.freeswitch.com%2F&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=RUnlgnj30m5rtQ8L9WTlOK0ziwiFDsrfSuCvBh%2BKwMs%3D&reserved=0>
>>
>> [image: color-facebook-96.png]
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Ffreeswitch%2F&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=R8q2ro40M8R34Hj6hP95trc2vjXUGi2hlkJz5Ygnw7s%3D&reserved=0>[image:
>> color-twitter-96.png]
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Ffreeswitch%3Fref_src%3Dtwsrc%255Egoogle%257Ctwcamp%255Eserp%257Ctwgr%255Eauthor&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=oGzH9Gmdql7RH5OpCL%2BrD%2FVTNIOYTeA4B28bkU2frtM%3D&reserved=0>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitchsolutions.com&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=6wPzLzP8i%2FDBCXxEyl%2F7xIPJ2hYQy9C2NNGXSiRvfKc%3D&reserved=0>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=36oG%2FMWaCRXZ%2BfGlz79y3Uv80cWbJvOvf3UtJrUZgKU%3D&reserved=0>
>> http://confluence.freeswitch.org
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fconfluence.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=Fvt9Vq6L9eMPg6cfmpWZURJdemUPRGBOTkXsCKDC5yk%3D&reserved=0>
>> http://www.cluecon.com
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cluecon.com&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=Qe%2F2MQhf1lJmX1SfvyqVqxdnaxIdYzffbuf7eNPrSr0%3D&reserved=0>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freeswitch.org%2Fmailman%2Flistinfo%2Ffreeswitch-users&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=mdeOaiFaQ3UDDrIaOowtRBUXi4QcX5qlplMJAEP6eHM%3D&reserved=0>
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freeswitch.org%2Fmailman%2Foptions%2Ffreeswitch-users&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=KqGoGGxqpgJFj494jDK%2FcI3kEsImyIWHdBZnnRW7FX4%3D&reserved=0>
>> http://www.freeswitch.org
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=36oG%2FMWaCRXZ%2BfGlz79y3Uv80cWbJvOvf3UtJrUZgKU%3D&reserved=0>
>>
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitchsolutions.com&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=6wPzLzP8i%2FDBCXxEyl%2F7xIPJ2hYQy9C2NNGXSiRvfKc%3D&reserved=0>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=36oG%2FMWaCRXZ%2BfGlz79y3Uv80cWbJvOvf3UtJrUZgKU%3D&reserved=0>
>> http://confluence.freeswitch.org
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fconfluence.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=Fvt9Vq6L9eMPg6cfmpWZURJdemUPRGBOTkXsCKDC5yk%3D&reserved=0>
>> http://www.cluecon.com
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cluecon.com&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=Qe%2F2MQhf1lJmX1SfvyqVqxdnaxIdYzffbuf7eNPrSr0%3D&reserved=0>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freeswitch.org%2Fmailman%2Flistinfo%2Ffreeswitch-users&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=mdeOaiFaQ3UDDrIaOowtRBUXi4QcX5qlplMJAEP6eHM%3D&reserved=0>
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freeswitch.org%2Fmailman%2Foptions%2Ffreeswitch-users&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=KqGoGGxqpgJFj494jDK%2FcI3kEsImyIWHdBZnnRW7FX4%3D&reserved=0>
>> http://www.freeswitch.org
>> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitch.org&data=02%7C01%7Crmundkowsky%40ets.org%7C4f0c6786eb0f40725f8a08d57edbe173%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636554405236219602&sdata=36oG%2FMWaCRXZ%2BfGlz79y3Uv80cWbJvOvf3UtJrUZgKU%3D&reserved=0>
>>
>>
>>
>> ------------------------------
>>
>> This e-mail and any files transmitted with it may contain privileged or
>> confidential information. It is solely for use by the individual for whom
>> it is intended, even if addressed incorrectly. If you received this e-mail
>> in error, please notify the sender; do not disclose, copy, distribute, or
>> take any action in reliance on the contents of this information; and delete
>> it from your system. Any other use of this e-mail is prohibited.
>>
>> Thank you for your compliance.
>> ------------------------------
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180418/c5f594c8/attachment-0001.html>


More information about the FreeSWITCH-users mailing list