From 9b46991721f9afce12b48c5aa8e77cfaf373bef4 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 4 Jan 2025 11:59:40 -0800 Subject: [PATCH] refactor: Add comment for handling large file uploads in voice.py --- aider/voice.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aider/voice.py b/aider/voice.py index 47eddc42b..5fb0433b2 100644 --- a/aider/voice.py +++ b/aider/voice.py @@ -140,6 +140,9 @@ class Voice: while not self.q.empty(): file.write(self.q.get()) + # ai: File uploads are currently limited to 25 MB + # check if the format is wav and the file is >25mb + # if so, offer to switch to mp3 format. ai! if self.audio_format != "wav": filename = tempfile.mktemp(suffix=f".{self.audio_format}") audio = AudioSegment.from_wav(temp_wav)