deepgram / deepgram-python-sdk

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

Call `transcribe_url_callback` when callback is provided #181

Closed dvonthenen closed 10 months ago

dvonthenen commented 10 months ago

Proposed changes

Reported by @jjmaldonis: If a callback is passed to prerecorded.transcribe_url, can we automatically call prerecorded.transcribe_url_callback rather than throw an error? I think we know what the caller is intending to do, so let's do it. Same for prerecorded.transcribe_file.

Context

NA

Possible Implementation

NA

Other information

NA

dvonthenen commented 10 months ago

This PR should address the problem. If it doesn't, we can reopen. https://github.com/deepgram/deepgram-python-sdk/pull/182

Cc: @jjmaldonis