You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a large file (for example https://www.youtube.com/watch?v=xX4mBbJjdYM downloaded with yt-dlp) I get errors.
I have seen these 2 errors, the first one being more common:
Error: Connection error.
Error: 413 Request Entity Too Large
Here is a stacktrace from the debug option: npx echogarden transcribe --debug --openAICloud.model=whisper-large-v3-turbo --openAICloud.apiKey='<api_key>' --engine=openai-cloud --openAICloud.baseURL=https://api.groq.com/openai/v1 --language=en "My Business Is In Danger - WAN Show February 7, 2025-xX4mBbJjdYM.mkv" "My Business Is In Danger - WAN Show February 7, 2025-xX4mBbJjdYM.srt"
Send request to https://api.groq.com/openai/v1.. APIConnectionError: Connection error.
at OpenAI.makeRequest (file:///home/user/.npm/_npx/e9225f775dff863b/node_modules/openai/core.mjs:316:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Module.recognize (file:///home/user/.npm/_npx/e9225f775dff863b/node_modules/echogarden/dist/recognition/OpenAICloudSTT.js:31:20)
at async Module.recognize (file:///home/user/.npm/_npx/e9225f775dff863b/node_modules/echogarden/dist/api/Recognition.js:163:41)
at async transcribe (file:///home/user/.npm/_npx/e9225f775dff863b/node_modules/echogarden/dist/cli/CLI.js:451:115)
at async startWithArgs (file:///home/user/.npm/_npx/e9225f775dff863b/node_modules/echogarden/dist/cli/CLI.js:222:13)
at async start (file:///home/user/.npm/_npx/e9225f775dff863b/node_modules/echogarden/dist/cli/CLI.js:149:9) {
status: undefined,
headers: undefined,
request_id: undefined,
error: undefined,
code: undefined,
param: undefined,
type: undefined,
cause: FetchError: request to https://api.groq.com/openai/v1/audio/transcriptions failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (/home/user/.npm/_npx/e9225f775dff863b/node_modules/node-fetch/lib/index.js:1501:11)
at ClientRequest.emit (node:events:524:28)
at emitErrorEvent (node:_http_client:104:11)
at TLSSocket.socketErrorListener (node:_http_client:518:5)
at TLSSocket.emit (node:events:536:35)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET'
}
}
When using the official openai api I get a similar error: npx echogarden transcribe --debug --openAICloud.model=whisper-1 --openAICloud.apiKey='<api_key>' --engine=openai-cloud --language=en "My Business Is In Danger - WAN Show February 7, 2025-xX4mBbJjdYM.mkv" "My Business Is In Danger - WAN Show February 7, 2025-xX4mBbJjdYM.srt"
The text was updated successfully, but these errors were encountered:
rotemdan
changed the title
Large files connection error with groq/openai api
Split large audio files before sending them to cloud speech recognition services like OpenAI or Groq
Feb 15, 2025
Thanks for the report. I've tagged this as a feature suggestion.
It's possible to pre-split the audio to chunks before sending it to the cloud provider.
It will require incorporating some voice activity detection to find good split points.
rotemdan
changed the title
Split large audio files before sending them to cloud speech recognition services like OpenAI or Groq
Split long audio to chunks before sending it to cloud speech recognition services like OpenAI or Groq
Feb 15, 2025
With a large file (for example https://www.youtube.com/watch?v=xX4mBbJjdYM downloaded with yt-dlp) I get errors.
I have seen these 2 errors, the first one being more common:
Here is a stacktrace from the debug option:
npx echogarden transcribe --debug --openAICloud.model=whisper-large-v3-turbo --openAICloud.apiKey='<api_key>' --engine=openai-cloud --openAICloud.baseURL=https://api.groq.com/openai/v1 --language=en "My Business Is In Danger - WAN Show February 7, 2025-xX4mBbJjdYM.mkv" "My Business Is In Danger - WAN Show February 7, 2025-xX4mBbJjdYM.srt"
When using the official openai api I get a similar error:
npx echogarden transcribe --debug --openAICloud.model=whisper-1 --openAICloud.apiKey='<api_key>' --engine=openai-cloud --language=en "My Business Is In Danger - WAN Show February 7, 2025-xX4mBbJjdYM.mkv" "My Business Is In Danger - WAN Show February 7, 2025-xX4mBbJjdYM.srt"
The text was updated successfully, but these errors were encountered: