import os
from pydub import AudioSegment
folder_path = "path" # like a "C:/sounds"
output_folder = os.path.join(folder_path, "louder_files")
os.makedirs(output_folder, exist_ok=True)
for filename in os.listdir(folder_path):
if filename.endswith(".mp3"):
song = AudioSegment.from_mp3(os.path.join(folder_path, filename))
louder_song = song + 6 # 6 db, может быть настроено в зав-ти от нужды
louder_song.export(os.path.join(output_folder, f"louder_{filename}"), format='mp3')
print("End.")