Error in api request in python #996
Replies: 3 comments
-
Hey there! It looks like you haven't connected your GitHub account to your Deepgram account. You can do this at https://community.deepgram.com - being verified through this process will allow our team to help you in a much more streamlined fashion. |
Beta Was this translation helpful? Give feedback.
-
It looks like we're missing some important information to help debug your issue. Would you mind providing us with the following details in a reply?
|
Beta Was this translation helpful? Give feedback.
-
our Python SDK 2.12 version is very old we recommend using the latest version of our Python SDK as we can't guarantee backwards compatibility on older SDK versions. Can you try running a new version and see if this resolves the problem? https://github.com/deepgram/deepgram-python-sdk/releases/tag/v3.7.6
|
Beta Was this translation helpful? Give feedback.
-
i am using the deepgram-sdk==2.12.0
async def get_transcript(callback):
dg_client = Deepgram(os.getenv("DEEPGRAM_API_KEY"))
transcription_complete = asyncio.Event() # Event to signal transcription completion
try:
# Define options for live transcription
options = {
"punctuate": True,
"model": "nova-2",
"language": "en-US",
"encoding": "linear16",
"channels": 1,
"sample_rate": 16000,
"endpointing": 300,
"smart_format": True,
}
this is my code. but getting the error: Could not open socket: server rejected WebSocket connection: HTTP 400
i do not know why. since the maintenance of the deepgram, i am getting this error. can anyone tell me about this
Beta Was this translation helpful? Give feedback.
All reactions