deepgram-starters / nextjs-live-transcription

Live transcription in Next.js by Deepgram
https://nextjs-live-transcription.vercel.app
MIT License
141 stars 183 forks source link

fix: iOS Safari crash fix #13

Closed mazshakibaii closed 4 months ago

mazshakibaii commented 5 months ago

When using Safari on iOS, an empty packet is sent within the first few seconds of connecting. This causes the connection to close. By checking that e.data.size > 0, we only send packets with data to the Deepgram API, preventing this from happening.

This has been an outstanding problem on discord and on github:

Github:

Discord:

vercel[bot] commented 5 months ago

@mazshakibaii is attempting to deploy a commit to the Deepgram Team Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextjs-live-transcription ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 9:09am
lukeocodes commented 4 months ago

Have you considered doing this fix in our official SDK? Thanks for your PR!