deepgram / deepgram-python-sdk

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

Could not open socket: SpeechStarted #393

Closed Dibya069 closed 1 month ago

Dibya069 commented 1 month ago

Microphone accessing for STT

Got the error from this file, deepgram/deepgram-python-sdk/blob/main/examples/streaming/microphone/main.py New here so, Unable to know what is the mistake, but

And then I didn't does any changes, Please anybody help me with this !!!

dvonthenen commented 1 month ago

Hi @Dibya069

Can you copy and paste the error in this issue? So far, there is nothing to look at other than "I have a problem."

It says you have installed libraries, but just making sure: https://github.com/deepgram/deepgram-python-sdk/blob/main/examples/streaming/microphone/README.md

Dibya069 commented 1 month ago

image

Hello @dvonthenen sir, thanks for the replay but,

libraries installed are

use conda env with python==3.10

here I notice something, in the line 73 : LiveTranscriptionEvents.SpeechStarted and line of 77: LiveTranscriptionEvents.Unhandled these are not colord, which indecate that these are not the part of deepgram.

Is there any updated or not , because I installed the latest version of the deepgram

dvonthenen commented 1 month ago

What version of the python SDK do you have installed?

pip freeze | grep deepgram
Dibya069 commented 1 month ago

@dvonthenen

python==3.10.14 deepgram-sdk==3.0.1

dvonthenen commented 1 month ago

You need to update to at least 3.2 to when those features were implemented, but I would update to latest to get any bug fixes.

Dibya069 commented 1 month ago

thanks @dvonthenen sir, now its working perfectly fine