feat: add audio.device and whisper.base_url to config defaults

This commit is contained in:
2026-04-01 20:25:48 +02:00
parent 3f9abc6a89
commit 912b333124
2 changed files with 19 additions and 1 deletions
+6 -1
View File
@@ -12,6 +12,10 @@ DEFAULTS = {
"model": "large-v3",
"language": "de",
"device": "auto", # "auto" = use GPU if ROCm available, else CPU
"base_url": "",
},
"audio": {
"device": "",
},
"server": {
"port": 8765,
@@ -56,6 +60,7 @@ def _write_defaults():
with open(CONFIG_PATH, "w") as f:
f.write("# tüit Transkriptor config\n\n")
f.write('[ollama]\nbase_url = "http://localhost:11434"\nmodel = "gemma3:12b"\n\n')
f.write('[whisper]\nmodel = "large-v3"\nlanguage = "de"\ndevice = "auto"\n\n')
f.write('[whisper]\nmodel = "large-v3"\nlanguage = "de"\ndevice = "auto"\nbase_url = ""\n\n')
f.write('[audio]\ndevice = ""\n\n')
f.write('[server]\nport = 8765\n\n')
f.write(f'[output]\npath = "{DEFAULTS["output"]["path"]}"\n')