Unexpected end of stream error while waiting for transcription #929
Replies: 3 comments 1 reply
-
Thanks for asking your question about Deepgram! If you didn't already include it in your post, please be sure to add as much detail as possible so we can assist you efficiently, such as:
|
Beta Was this translation helpful? Give feedback.
-
I noticed that a very similar problem is present in the Deepgram API Playground. I uploaded a 2-hour audio (m4a), configured all the same parameters and also added "smart_format". After 2 minutes, I got the following error: I went to the "Usage" tab and saw that it made 2 requests with an interval of one minute:
There are no errors in the requests (same as in the previous ones), the result is 200 OK. |
Beta Was this translation helpful? Give feedback.
-
@A1trdX we advise moving away from using Whisper if you can . Our Nova-2 model is much more accurate and efficient, so unless you need to stay on Whisper for some other reason, I'd suggest this approach. You are likely hitting our time out limit for Whisper since it's not a model that is highly optimized. You can read more about that here: |
Beta Was this translation helpful? Give feedback.
-
I use the "whisper-large" model. Very often, audio transcriptions (especially those lasting 1 hour or more) take more than 1 minute. And for some reason, the server simply disconnects after exactly 1 minute (at this time, the website logs still show the "Pending" status) without any response, making it impossible to get the transcription.
Examples:
Only model and language request params used.
The program is written in Java using OkHttp 4.12.0.
Program log:
Code that sends the request:
HTTP client setup:
The error only occurs when the wait is longer than 1 minute, otherwise everything works fine.
Beta Was this translation helpful? Give feedback.
All reactions