GithubHelp home page GithubHelp logo

Comments (3)

dvonthenen avatar dvonthenen commented on July 19, 2024

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.

dvonthenen avatar dvonthenen commented on July 19, 2024

For my notekeeping, this thread in Discord is the same problem:
https://discord.com/channels/1108042150941294664/1214170879647289416

from deepgram-python-sdk.

dvonthenen avatar dvonthenen commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.