Real time audio streaming of a conversation

Our use case is, when we make/receive a call from our softphone, firstly the request goes to our server(asterisk) which forwards the request to twilio SIP trunk and we are able to place call, but we want to stream the conversation to a WebSocket/any endpoint so that in real time that conversation can be converted into text.

I am not sure how to do this with asterisk.

Kindly help me !

Abhiraj |

There is no built in mechanism to forward audio over a WebSocket. The only mechanisms are the normal VoIP protocols, EAGI, and app_jack.