Persist Piper settings in restored OpenWebUI
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user