From 36e5599eadd3e88efd44e5d5349fc02c0290f082 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 4 Jan 2025 12:04:09 -0800 Subject: [PATCH] feat: Add file size logging after audio conversion --- aider/voice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/voice.py b/aider/voice.py index e9597f515..1b5c47b7a 100644 --- a/aider/voice.py +++ b/aider/voice.py @@ -153,6 +153,7 @@ class Voice: audio = AudioSegment.from_wav(temp_wav) audio.export(filename, format=self.audio_format) os.remove(temp_wav) + print(f"Converted to {self.audio_format}, new size: {os.path.getsize(filename) / 1024 / 1024:.1f}MB") except (CouldntDecodeError, CouldntEncodeError) as e: print(f"Error converting audio: {e}") filename = temp_wav # fall back to original file