Bklieger / groqnotes

GroqNotes: Generate organized notes from audio using Groq, Whisper, and Llama3
https://groqnotes.com
MIT License
324 stars 64 forks source link

Add support for splitting and transcribing large audio files #20

Closed mentatbot[bot] closed 1 week ago

mentatbot[bot] commented 1 week ago

This update addresses the issue where the app could not handle audio files larger than 25 MB due to Whisper's max input file size limitation. The solution involves splitting audio files greater than 25 MB into smaller chunks, each of which can be transcribed by the API. The results are then combined into a single transcript.

Changes include:

This ensures that larger audio files can be processed without hitting the size limit, while also considering API cost and rate limits.

Closes #8

Bklieger commented 1 week ago

@mentatbot Please review this PR. Running the code results in this error when uploading an .m4a file which previously worked: Error code: 400 - {'error': {'message': 'file must be one of the following types: [flac mp3 mp4 mpeg mpga m4a ogg opus wav webm]', 'type': 'invalid_request_error'}}