mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor: Add comment for handling large file uploads in voice.py
This commit is contained in:
parent
606cd0368f
commit
9b46991721
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue