deepgram / deepgram-js-sdk

Official JavaScript SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
127 stars 45 forks source link

fix: unconditional process reference #292

Closed msopacua closed 1 month ago

msopacua commented 1 month ago

The process global does not exist in the browser and therefore throws an error if one tries to create a client in the browser. Fix it in a way that's compatible with any (future) engine that doesn't have a process global.

closes #290

lukeocodes commented 1 month ago

Thank you for your contribution!