Closed lukeocodes closed 6 months ago
This does not work properly on iOS browsers including Safari. The live transcription works well for the first 10-20 seconds on iOS. Then it loses the websocket connection and says "Deepgram is connecting..." After that it shows "Deepgram connection open!" but stops working. No further captions are produced after this.
You can reproduce this issue by running your Vercel demo on iOS browsers.
Whenever the websocket disconnects, the Close event seems to be triggered correctly because isListening is set to false. It seems a new websocket connection is also correctly established after this because isListening gets changed back to true when the connection Open event triggers.
Not sure what's going wrong here just on iOS because this demo works well on Android, Windows, Mac.
Great work on this. Any update on this issue though? I'm even having this on my Mac. It works for a few seconds but then once the connection is established again the captions do not update.
UPDATE: Turning off react strict mode (as was suggested in other issue) seems to have fixed this.
This demo is currently utilising our beta JavaScript SDK for the purposes of live transcription directly from the client. This version of the SDK is considered stable. It remains in beta while we endeavour to prepare all documentation and migration guides for the purposes of a production releases. You're welcome to track these changes on the repository itself.
https://github.com/deepgram/deepgram-node-sdk