deepgram / deepgram-python-sdk

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

DeepgramApiError is not in the python SDK #461

Closed ayhuang closed 6 days ago

ayhuang commented 1 week ago

What is the current behavior?

I am trying to implement error handling in our code that invokes the python SDK function deepgram.listen.rest.v("1").transcribe_url_callback(). I am getting a DeepgramApiError exception. But I can't find that on the list of errors in the SDK (v3.4) source, and no documentation anywhere either. How am i supposed to catch that?

Steps to reproduce

use a bogus API key

Expected behavior

Please tell us about your environment

aws lambda, Python 3.12 deepgram 3,4

Other information

dvonthenen commented 6 days ago

Available in this release: https://github.com/deepgram/deepgram-python-sdk/releases/tag/v3.5.2