I don’t think there’s an API that you can use to tap on the RTP stream. You can always record your call in stereo and post-process the file, if that’s valid for what you’re trying to do.
If not, check the MRCP protocol. I guess you can write an MRCP server (or use an existing one), and stream the audio from FS using mod_unimrcp. That’s how you integrate 3rd party ASR systems (e.g. Nuance’s Recognizer) with FreeSWITCH.
Hello,
Now I have even managed to do outbound calls. I have a real problem now.
How can I get the audio stream from the person on the other end. I want the audio stream to be sent to my API in real time. I want to detect silence as well, but we can do that by experiment. Only thing is that I am unable to get the audio stream. And this
stream should only have the voice of person being called, not mine(i.e. the incoming audio). Is it possible??
Please help