drachtio / drachtio-freeswitch-modules

A collection of open-sourced freeswitch modules that I use in various drachtio applications
MIT License
174 stars 119 forks source link

deepgram websocket connection closed after few seconds of transcription #155

Closed rasheed-speechlogix closed 10 months ago

rasheed-speechlogix commented 10 months ago

It is noticed that after few seconds of transcription by the deepgram, it will close the websocket connection opened from the mod_deepgram_transcribe module . After few seconds of transcription the following error will be there.

"dg_transcribe_glue.cpp:223 connection dropped from far end"

Is deepgram expecting some kind of keep alive packets for keeping the websocket connection ?

davehorton commented 10 months ago

When you say "a few seconds" how many seconds are you seeing? Are you testing with the latest version, because there was a bug fixed recently that may be the cause of what you are seeing. The fix was in this commit so make sure you have that one.

rasheed-speechlogix commented 10 months ago

It was closed after 12 seconds i think . i installed the fsmrf using this ansible https://github.com/davehorton/ansible-role-fsmrf on 9th November. So i think it should be covered in the commit you shared.

davehorton commented 10 months ago

I doubt it actually. I dont keep that updated very often

On Nov 17, 2023, at 1:39 PM, rasheed-speechlogix @.***> wrote:

It was closed after 12 seconds i think . i installed the fsmrf using this ansible https://github.com/davehorton/ansible-role-fsmrf on 9th November. So i think it should be covered in the commit you shared.

— Reply to this email directly, view it on GitHub https://github.com/drachtio/drachtio-freeswitch-modules/issues/155#issuecomment-1816911327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOMGLPCTFNNCRKC4QJUNKLYE6VMZAVCNFSM6AAAAAA7QFCT5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJWHEYTCMZSG4. You are receiving this because you commented.

rasheed-speechlogix commented 10 months ago

Hello Dave, Yes you are right, the ansible which i used for installing fsmrf is set with version 0.8.2 where this commit was not there. I build it again with the latest files and now the issue is fixed. Thanks for your support.

Thanks and Regards Rasheed