-
Notifications
You must be signed in to change notification settings - Fork 47
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
Deepgram timeouts #151
Comments
Hi @swethmandava , I've just tested this using the Python SDK and I didn't encounter a problem. Can you verify that you were using this Python SDK to make the request? I tested it using the prerecorded example file in the examples folder of this project. |
Increasing timeout fixes the issue. |
even without timeout = 3000, it fails sometimes for videos of length < 1 hr. what do you recommend? |
@swethmandava timeouts can happen for a lot of reasons but it might all come down to the file size of what you are trying to send to us to transcribe. so I'd recommend setting the timeout value to Also I noticed you used our Here are some Docs that can help you determine a model: https://developers.deepgram.com/docs/model |
I still get timeout errors occasionally. What's the recommended way to retry / upload large files without timeouts? |
The best way of you are dealing with potential unstable internet connections would be to upload to some publicly accessible S3 bucket and use the transcription via URL method. |
I am trying to transcribe an mp3 on my computer of about 1 hour and a half and it keeps timing out. I trying using the parameter timeout = 300 but it said this was invalid syntax. Does anyone know how to fix this? |
@JoelLederman It's probably because the syntax is invalid (the parameter you are using is not valid). Can you post your code OR how you are calling the function with the parameter declarations here? |
This is the part of the code that I specify timeout settings: |
yea, there isn't a timeout parameter in the transcription options class. it's on the function: For
|
Ok that worked thanks so much! |
I would understand how dot notation works. Here is an article: The structure for what the prerecorded result looks like is here: The Prerecorded Object is VASTLY different from the Live Response object, but it might give you a clue on how you want to format your transcription and how to use the dot notation: |
Ok thanks so much you have been an amazing help! |
Exception: DG: 408, message='Request Timeout', url=URL('https://api.deepgram.com/v1/listen?smart_format=true&utterances=true&summarize=v2&model=video&diarize=true')
Worked fine till a few hours ago.
The text was updated successfully, but these errors were encountered: