Comments (5)
Thanks! I'll take a look at it after some time.
Also, I noticed a minor mistake in the logs, so I created a PR #347
from deepgram-python-sdk.
Also, in v3.2.1
, there's no way for me to handle exceptions raised by the send
method, because they're caught within the SDK and logged, as you can see here
deepgram-python-sdk/deepgram/clients/live/v1/async_client.py
Lines 358 to 361 in 2d0ddf1
Now, let's say I want to reconnect if there's an exception in self._socket.send
, there's no way for me to do it using the SDK, other than using self._socket.send
directly instead of AsyncLiveClient.send
, which beats the purpose of the class.
from deepgram-python-sdk.
Ooops. That's definitely a bug after the refactor. We should not be kicking off the thread off if the keepalive isn't enabled. Will also toggle post an error on the callback which is missing and provide a switch to handle the exception yourself.
Will have that fixed this morning.
from deepgram-python-sdk.
hi @roerohan
This should address your issue:
https://github.com/deepgram/deepgram-python-sdk/releases/tag/v3.2.2
If you want to enable passing the exceptions up, there are options to do that now on top of fixing the keepalive issue. If you have any problems with this, catch me in discord for real-time help.
from deepgram-python-sdk.
Here are some examples to demonstrate expected failures when not using and also how to utilize the feature correctlyhttps://github.com//pull/348
from deepgram-python-sdk.
Related Issues (20)
- Type Input, Return, etc Parameters Where Needed HOT 1
- Examine Legacy Syntax and Verify/Identify Issues HOT 1
- Extra (parameter) results not present in per-message metadata response HOT 1
- Deepgram audio timeout window error HOT 20
- Implement TTS HOT 2
- Fix PyDocs to Only Generate on GA `vX.Y.Z` HOT 1
- Error: keepalive ping timeout; no close frame received HOT 6
- Pyright type definitions check fails with upgrade to 3.1.5 HOT 3
- Misc Typing Bug HOT 1
- StreamSource is broken in latest SDK (3.1.5) HOT 5
- Fatal error on SSL transport HOT 3
- Include `encoding` and `sampling_rate` in Prerecorded API HOT 1
- Clarify Support for Examples on Windows HOT 3
- Improved Websocket support for Latency HOT 1
- Improve retries for failed Requests HOT 1
- Improved chunking of TTS HOT 1
- Custom Headers per REST and WS Call HOT 1
- Implement `UnhandledEvent()` like in Go SDK HOT 1
- Implement Flush Feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepgram-python-sdk.