Hello, I want to stream both the parties audio separately to a web socket for real time transcription and diarization(speaker labelling). I am able to record the audio separately using monitor for both agent and costumer but i want to steam the audio

i have done this,
To do this you would need a audiosocket server running . Check audiosockets in asterisk
create a channel to audiosocket server
create a brdige
copy the channel on which one party is speaking
put them in the bridge.
Your audio socket server will start getting audio stream then forward that audio stream to a transcription service i used a third party service like deepgram.
Thanks

1 Like