formating

This commit is contained in:
2024-02-14 15:10:55 -05:00
parent 66fdac8af6
commit 61813dd016
2 changed files with 1 additions and 0 deletions

BIN
audio.mp4

Binary file not shown.

View File

@@ -36,6 +36,7 @@ def download(video_url, output_filename='audio.mp4'):
def compress_audio(input_filename, target_size_mb=25): def compress_audio(input_filename, target_size_mb=25):
try: try:
print("Compressing audio...") print("Compressing audio...")
audio = AudioSegment.from_file(input_filename) audio = AudioSegment.from_file(input_filename)
# Split the input filename into directory and file components # Split the input filename into directory and file components