fix(tts): nicht installierte Sprachmodelle nicht registrieren und nicht anbieten (#1114)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GmHhg5YdSXUmKzjHCaEWQp
This commit is contained in:
2026-11-18 10:53:03 +01:00
parent 647344935c
commit 88c30b5c57
8 changed files with 136 additions and 28 deletions

View File

@ -399,6 +399,14 @@ impl Runtime {
/// Die angeschlossenen Engines mit Fähigkeiten und Startkommando, nach Namen
/// sortiert (für die Oberfläche).
/// Ist das Modell auf diesem Rechner installiert? Unbekannte Engines gelten als installiert.
pub fn model_installed(&self, engine: &str, model: &str) -> bool {
self.shared
.engines
.get(engine)
.is_none_or(|e| e.installed(model))
}
/// Stimmen der Sprachausgabe einer Engine (leer, wenn es keine gibt oder sie nicht antwortet).
pub async fn engine_voices(&self, name: &str) -> Vec<nexus_adapter::Voice> {
match self.shared.engines.get(name) {