amigniter / mod_audio_stream

FreeSWITCH module to stream audio to websocket and receive response
MIT License
76 stars 39 forks source link

play audio back to channel #56

Open eschmidbauer opened 2 months ago

eschmidbauer commented 2 months ago

Looking at the README(Websocket server may return JSON object containing base64 encoded audio to be played by the use), I was under the impression that the module automatically plays the audio that is received on the websocket connection back to the call channel. Looking at the code, it appears mod_audio_stream only writes the chunks to file. Is there a way to automatically play those chunks of audio into the call? Thanks!

eschmidbauer commented 2 months ago

interesting hack-- i added this line and it plays the chunks of audio. probably not the best implementation image

bvisonl commented 2 months ago

I was also trying to do this, and stumbled upon https://github.com/amigniter/mod_audio_stream/issues/31 so I ended up using ESL to play the audio files 😿

eschmidbauer commented 3 weeks ago

it would be cool to stream WS audio directly back into the channel, much like the WS audio is streamed out of the channel