Compare commits

..

2 Commits

2 changed files with 6 additions and 12 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@
/app_config.json /app_config.json
/custom_logo /custom_logo
/static/theme.css /static/theme.css
/transcription_folder.yml

View File

@ -5,6 +5,7 @@ import whisper
import concurrent.futures import concurrent.futures
import json import json
import re import re
import yaml
# model_name = "large-v3" # model_name = "large-v3"
model_name = "medium" model_name = "medium"
@ -13,17 +14,9 @@ model_name = "medium"
start_time = 0 start_time = 0
total_audio_length = 0 total_audio_length = 0
folder_list = [ with open("transcription_folder.yml", "r", encoding="utf-8") as file:
# Speyer settings = yaml.safe_load(file)
# "\\\\10.1.0.11\\Aufnahme-stereo\\010 Gottesdienste ARCHIV\\2025", folder_list = settings.get("folder_list", [])
# "\\\\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"
]
def format_timestamp(seconds): def format_timestamp(seconds):
"""Format seconds into HH:MM:SS.""" """Format seconds into HH:MM:SS."""