getting realtime audio stream from voip or sip systems
Asked Answered
Q

2

7

I am building an application that gets real-time audio from our organization's VoIP system, records the call and transcribe the real-time voice. The transcription then passed to our analytics engine and get the insights.

We are able to transcribe the recorded audio and get the insights from the transcription. We have a solution for real-time transcription also. It will transcribe the voice from the microphone and even an RTSP stream also. We are having trouble finding a solution for getting the real-time audio from SIP/VoIP systems. I read that SIP Trunking and option and also WebRTC is also another option. But I don't know how to and where to start with.

I am experienced in Java and Python, I requesting experts to give me suggestions or examples on how to get the real-time audio stream from a SIP/VoIP conversation.

I am not familiar with SIP/VoIP and never written VoIP application.

Quincentenary answered 30/1, 2019 at 15:7 Comment(4)
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question.Clarhe
SIP is just a Session Initiation Protocol. SIP/SDP usually establish an RTP/RTCP media stream - and that is something your application can transcribe.Creatinine
Is there any way to get RTP/RTCP media stream from the SIP call?Quincentenary
See voip-info.org/converting-rtp-to-audio which describes some ways to capture and decode the RTP stream.Symphysis
B
1

A solution that might suit your needs is Oreka, which is the open source version of Orecx, a call recording software for VoIP.

I used it in the past and it works perfectly well with SIP calls that use open audio codecs like g711 (alaw,ulaw) or speex but it may have problems decoding the audio of calls that use the propietary g729 codec (I had to work out my own codecs at that time).

The paid version might support more codecs and protocols like Avaya's H323.

Have in mind that this app works by sniffing the network, so the setup is not trivial. Anyway, I suggest you give it a try.

Link: https://www.orecx.com/open-source/

Bobbobb answered 8/2, 2019 at 14:6 Comment(2)
Thanks for your answer. I will give a try as you suggestedQuincentenary
Does Oreka supports getting audio in real-time from SIP/VoIP calls? When you used oreka, did you used port mirroring/post spanning to connent oreka to SIP calls?Quincentenary
P
0

For anyone out there. if you want to have access to live/realtime audio data from a VoIP call I suggest you use Twilio Streams. If you're just looking to get realtime transcriptions without access to the actual audio data Twilio and Plivo also provide that.

Petuu answered 1/12, 2020 at 2:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.