Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not open socket: 'Version' object is not callable #2

Open
wiselancer opened this issue Aug 25, 2024 · 1 comment
Open

Could not open socket: 'Version' object is not callable #2

wiselancer opened this issue Aug 25, 2024 · 1 comment

Comments

@wiselancer
Copy link

Tried to run and got the error and then changed
dg_connection = deepgram.listen.live.v("1") to
dg_connection = deepgram.listen.asyncwebsocket()
but again got the error:
Could not open socket: 'Version' object is not callable

@davidvonthenen
Copy link

davidvonthenen commented Sep 28, 2024

Hi @wiselancer

It should be deepgram.listen.websocket.v("1"). Give that a try since the code is specifically for the threaded client

Using the async client will not work in a threaded code base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants