From d6f7e16f160ce7abbb644955ddcc8e5febdd2275 Mon Sep 17 00:00:00 2001 From: Jarrad Ashton Brown Date: Sat, 28 Feb 2026 16:35:04 -0600 Subject: [PATCH] Added supportApplication that converts ogg files to mp3 (Team send announcments via whatsapp) and some modifications to uC main --- SupportProjects/AudioConverter/main.py | 30 ++++++++++++++++++++++++++ uC/main_uC/readm.txt | 7 +++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 SupportProjects/AudioConverter/main.py diff --git a/SupportProjects/AudioConverter/main.py b/SupportProjects/AudioConverter/main.py new file mode 100644 index 0000000..aced6c2 --- /dev/null +++ b/SupportProjects/AudioConverter/main.py @@ -0,0 +1,30 @@ +#/Users/jabrown/0/Audio + +import os +import subprocess + +def convert_folder(folder_path): + for file in os.listdir(folder_path): + if file.lower().endswith(".ogg"): + input_path = os.path.join(folder_path, file) + output_path = os.path.join( + folder_path, + os.path.splitext(file)[0] + ".mp3" + ) + + print(f"Converting: {file} -> {os.path.basename(output_path)}") + + subprocess.run([ + "ffmpeg", + "-y", # overwrite if exists + "-i", input_path, + "-vn", + "-acodec", "libmp3lame", + "-ab", "192k", + output_path + ], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + + print("Done.") + +# 👉 Set your folder here +convert_folder(r"/Users/jabrown/0/Audio") \ No newline at end of file diff --git a/uC/main_uC/readm.txt b/uC/main_uC/readm.txt index 9153aa1..de5ba8e 100644 --- a/uC/main_uC/readm.txt +++ b/uC/main_uC/readm.txt @@ -2,4 +2,9 @@ DFPlayer Structure Folder 1 = English Folder 2 = Spanish - 1 = \ No newline at end of file + 100 = Zona segura + 110 = Temp + 120 = Humidity + 130 = Pressure + 150 = AirQuality + 160 = Vibration \ No newline at end of file