mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
feat: Add file size logging after audio conversion
This commit is contained in:
parent
f5a82e575c
commit
36e5599ead
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue