diff --git a/.gitignore b/.gitignore index ee7ba93..26464f9 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,5 @@ /.env /app_config.json /custom_logo -/static/theme.css \ No newline at end of file +/static/theme.css +/transcription_folder.yml \ No newline at end of file diff --git a/transcribe_all.py b/transcribe_all.py index 6158db8..b2722b4 100755 --- a/transcribe_all.py +++ b/transcribe_all.py @@ -5,6 +5,7 @@ import whisper import concurrent.futures import json import re +import yaml # model_name = "large-v3" model_name = "medium" @@ -13,17 +14,9 @@ model_name = "medium" start_time = 0 total_audio_length = 0 -folder_list = [ - # Speyer - # "\\\\10.1.0.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2025", - # "\\\\10.1.0.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2016", - # "\\\\10.1.0.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2015", - # "\\\\10.1.0.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2014", - - # Schwegenheim - "\\\\10.1.1.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2025", - "\\\\10.1.1.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2024" -] +with open("transcription_folder.yml", "r", encoding="utf-8") as file: + settings = yaml.safe_load(file) + folder_list = settings.get("folder_list", []) def format_timestamp(seconds): """Format seconds into HH:MM:SS."""