Closed osamabinsaleem closed 4 days ago
hi @osamabinsaleem
If you need to increase the timeout because the file is larger, you can follow the docs here: https://developers.deepgram.com/docs/python-sdk-pre-recorded-transcription#increasing-the-timeout-for-processing-larger-files
I'm doing the same thing. Can I increase it to more than 300 as well? @dvonthenen
e.g like this for 10 minutes:
response = deepgram.listen.prerecorded.v("1").transcribe_file(
payload, options, timeout=httpx.Timeout(600.0, connect=10.0)
)
of course! that's the point of that timeout
field! we have a default (don't need to specify the timeout
parameter at all), but if you need something other than default, you provide the timeout
parameter plus whatever values you want.
Hi. I'm getting frequent read time out errors. This is my code:
I've my video files stored on s3 buckets. I first download the file and then I'm converting it to mp3. Then I use the above code to transcibe it. I still occasionally get timeout issues. We get timeout issues with nova-2-general, so model changing doesnt work.
What do you recommend here: 1- Re-trying with Exponentional backoff 2- I should upload the audio to s3 bucket and use the presigned url to get the transcipt
Thanks!
There are the error logs: