whisper-obsidian-plugin icon indicating copy to clipboard operation
whisper-obsidian-plugin copied to clipboard

Error Code 413

Open tateh32 opened this issue 2 years ago • 8 comments
trafficstars

After attempting to upload an audio file, I get error code 413. "error sending audio data: request failed with status code 413"

tateh32 avatar Sep 11 '23 18:09 tateh32

get this too and my guess is the audio file is too large. for some reason the default recording format is .mp4 which makes really large audio files so anything over a few minutes cannot get sent to whisper because of file size limits

omegalens avatar Sep 18 '23 02:09 omegalens

I don't think the audio file being too large is the case, unless, the uploading file size limit has been capped recently. Earlier this month, I was able to upload an hour's worth of an WEBM file with a file size above 20MB and it worked successfully.

tateh32 avatar Sep 18 '23 18:09 tateh32

I believe the upload limit for whisper is 25mb. webm file sizes much smaller than mp4. unfortunately mp4 seems to be the only format that my phone records via this plugin - need to record elsewhere then upload to whisper. Hope this gets fixed and we can record mp3 natively.

omegalens avatar Sep 19 '23 22:09 omegalens

I was experiencing the same issue and converted 43mb .mp4 file down to 1.2mb .mp3 file (using Audacity) and the upload worked perfectly.

aarontimo avatar Jan 03 '24 07:01 aarontimo

413s can be quite frustrating. I've updated the settings to use audio/webm by default when possible, which should help alleviate the issue. Will test and follow up with more updates.

nikdanilov avatar Jan 29 '24 04:01 nikdanilov

Same here. A compression would be solving this issue. Or a split of the stream.

g1ronn1mo avatar Feb 20 '24 11:02 g1ronn1mo

I get this issue when I try to upload a recording of even a 30 minute meeting. Just checked the file size of a 45 minute WEBM recording that just failed and it was a little over 50 MB.

Whisper's limit is 25 MB, so I have to assume that's the problem. Short recordings work great.

I agree w/@g1ronn1mo - we probably need this plugin to either compress before uploading, and/or chunk the recording and make multiple calls.

lukehollenback avatar Mar 21 '24 21:03 lukehollenback

Hello, The solution to this is to send by chunks to the API, check podNotes plugin implementations for instance.

zhampu avatar Nov 08 '24 18:11 zhampu