deepgram / deepgram-python-sdk

Official Python SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
175 stars 47 forks source link

Fix `ws(s)://` for Streaming for On-Prem #377

Closed dvonthenen closed 2 months ago

dvonthenen commented 2 months ago

Proposed changes

Addresses: https://github.com/deepgram/deepgram-python-sdk/issues/360

I started by having DeepgramHttpClientOptions and DeepgramWsClientOptions, but having the deepgram.live or deepgram.manage|prerecorded|etc complicates things a lot. Ideally, I would rather ditch the dot notation for a more explicit and separate HTTP and WS ClientOptions, but here we are.

I want to break this in the next iteration (ie v4 of the SDK), but until then... we have this PR.

Types of changes

What types of changes does your code introduce to the community Python SDK? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

NA