Comments (3)
Hi @motapinto
Thanks for providing all this info. Will need a second to sift through it. I can answer some of your initial comments though in the meantime.
I leave transcription script that handles transcription running for some time and eventually that error appears. Can share entire code privately.
If you can log into Discord and share, that would be very helpful.
I tested this and keep alive message is sent even without starting microphone, so not sure why in "Error message type 2" I get 1011 websocket error.
If you have KeepAlive=True
, the Live Client will send keepalive messages continuously. The purpose of the message is when audio data from your source is not streaming through the client, the keepalive message will prevent DG from closing the socket. The 1011 close socket could happen though for other unforeseen reasons, however.
Is it necessary to send keep alive even with those options or can this be another problem?
If you aren't sending data and want to hold the DG connection open, then you need to enable the keepalive. The other option is that if you don't have the option set, you might want to control the "I'm not sending any data". In other words, you might prefer the disconnect, and if your application still needs the transcription because the process isn't done, you re-create the client for a reconnect. The advantage here is that this client has a fresh state.
Will take a look through the logs and drop more info here.
from deepgram-python-sdk.
For my notekeeping, this thread in Discord is the same problem:
https://discord.com/channels/1108042150941294664/1214170879647289416
from deepgram-python-sdk.
Via discord, we ended up finding the problem for anyone else that is interested. the problem is:
- running the examples on windows doesnt work because of the sigterm stuff. will add a disclaimer.
- on ubuntu there might also be an issue running the examples. I will take a look at this when I get some time.
in the meantime, these are just examples to demonstrate functionality and don't affect the core of the client code
from deepgram-python-sdk.
Related Issues (20)
- `Object of type Sentiment is not JSON serializable` everytime Python parses the `sentiment=<Sentiment.UNKNOWN: ''>` HOT 6
- DeepgramApiError: Please try again later. (Status: 503) HOT 21
- Implement Non-Blocking Async Threading HOT 4
- No module named pyaudio HOT 5
- Improve PyDocs Generation
- Socket exceptions are not caught in async live client HOT 3
- Implement Open Event, with `on_open` and `on_close` HOT 1
- Examine JSON DataClasses and Remove `Optional` for Those That are Required HOT 1
- 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
- Include `encoding` and `sampling_rate` in Prerecorded API HOT 1
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.