style: Format print statement in voice.py for better readability

This commit is contained in:
Paul Gauthier (aider) 2025-01-04 12:03:32 -08:00
parent 1851de323d
commit f5a82e575c

View file

@ -153,7 +153,6 @@ 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