mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
style: Format print statement in voice.py for better readability
This commit is contained in:
parent
36e5599ead
commit
19114a61ae
1 changed files with 4 additions and 1 deletions
|
@ -153,7 +153,10 @@ class Voice:
|
||||||
audio = AudioSegment.from_wav(temp_wav)
|
audio = AudioSegment.from_wav(temp_wav)
|
||||||
audio.export(filename, format=self.audio_format)
|
audio.export(filename, format=self.audio_format)
|
||||||
os.remove(temp_wav)
|
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:
|
except (CouldntDecodeError, CouldntEncodeError) as e:
|
||||||
print(f"Error converting audio: {e}")
|
print(f"Error converting audio: {e}")
|
||||||
filename = temp_wav # fall back to original file
|
filename = temp_wav # fall back to original file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue