From 19114a61aeda077dad5cb33128ba56f94bfb387b Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 4 Jan 2025 12:04:13 -0800 Subject: [PATCH] style: Format print statement in voice.py for better readability --- aider/voice.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aider/voice.py b/aider/voice.py index 1b5c47b7a..350dbbad2 100644 --- a/aider/voice.py +++ b/aider/voice.py @@ -153,7 +153,10 @@ 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") + print( + f"Converted to {self.audio_format}, new size:" + f" {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