Hey guys, just wanted to chime in here to check if any of you are currently experiencing the same issues as me when it comes to NodeJS and Whisper. So I’ve converted the file to .ogg which ended up saving me a lot of hassle having to previously split audio chunks into separate files. But for the last two days now I’ve been getting errors on “larger” .ogg files (16MB and 18MB to be precise).
I’ve tried to use both node-fetch that threw this error:
{
"error": {
"message": "The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID xx in your email.)",
"type": "server_error",
"param": null,
"code": null
}
}
And when using the openai library I get the following:
APIConnectionError: Connection error.
at OpenAI.makeRequest (/usr/src/app/node_modules/openai/core.js:292:19)
at async exports.performTranscription (/usr/src/app/utils/performTranscription.js:13:18)
at async exports.performTranscription (/usr/src/app/transcribe.js:473:26)
status: undefined,
headers: undefined,
error: undefined,
code: undefined,
param: undefined,
type: undefined,
cause: FetchError: request to https://api.openai.com/v1/audio/transcriptions failed, reason: read ECONNRESET
at ClientRequest. (/usr/src/app/node_modules/node-fetch/lib/index.js:1501:11)
at ClientRequest.emit (node:events:518:28)
at TLSSocket.socketErrorListener (node:_http_client:500:9)
at TLSSocket.emit (node:events:530:35)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
type: ‘system’,
errno: ‘ECONNRESET’,
code: ‘ECONNRESET’
I can swear this worked a week ago. Anyone else experiencing the same issues as me? For the record - the mp3 file is 1 hour and 40 min long. FYI; Over $100 dollars available on the account.
Smaller mp3/mp4/wav files seems to work just fine with the exact same code.
Edit: Created a thread here: Whisper API fails on "large" ogg files (still below 25MB)