Hi,
I want to take audio out from my ARI stasis channel on an external RTP Engine port/socket.
Can someone guide me what is the best way to achieve this?
I am using Asterisk 18 and have knowledge of RTP and audio forking.
Hi,
I want to take audio out from my ARI stasis channel on an external RTP Engine port/socket.
Can someone guide me what is the best way to achieve this?
I am using Asterisk 18 and have knowledge of RTP and audio forking.
Hi, great, externalmedia channels with RTP is the way.
You can see how it works here:
Basically you send the audio from asterisk using RTP, them you need to build your own RTP server to receive and process the audio stream to do anything you want to do.
Thanks for the link.
Can you tell me how I can write my own RTP server? Like my goal is to feed the audio from asterisk to either an LLM directly or via an STT engine (after converting it into text) and then send the synthesized audio back from the LLM via a TTS engine to asterisk…
do you think this will all be handled by the RTP server?
RTP Server isn’t a standard term. But what is called an RTP Server here, is one small part of your application.
There have been dozens of questions on the forum about how to integrate LLMs with Asterisk, so you should find and read them, particularly the earlier ones, before people just started saying that the questions has been answered, many times. All basically come to that you can get media in and out of Asterisk,but the rest is up to you.
The actual RTP server part is going to be a relatively trivial network application, and if you need detailed guidance on that you are going to be way out of your depth on the complete system.