Persist Piper settings in restored OpenWebUI

This commit is contained in:
Mikei386
2026-08-21 17:27:26 +02:00
parent a5cf11582a
commit 6f14f62dd1
3 changed files with 19 additions and 1 deletions
+16 -1
View File
@@ -119,10 +119,25 @@ with con:
""",
("task.follow_up.enable", "false", now),
)
for key, value in (
("audio.tts.engine", "openai"),
("audio.tts.model", "piper"),
("audio.tts.voice", "alloy"),
("audio.tts.openai.api_base_url", "http://router:8081/v1"),
):
con.execute(
"""
insert into config (key,value,updated_at) values (?,?,?)
on conflict(key) do update set
value=excluded.value,
updated_at=excluded.updated_at
""",
(key, json.dumps(value), now),
)
print(
"OpenWebUI konfiguriert: Default Off=10, Thinking=20, "
"Stability Guard=30, Secret Redaction=40, Local Metrics=90, "
"Quick Actions=100, Folgefragen=aus"
"Quick Actions=100, Folgefragen=aus, Piper-TTS=aktiv"
)
PY