Reuse existing Qwen1.7B Base for Deck voice cloning

This commit is contained in:
Mikei386 committed 2026-10-13 13:38:44 +02:00
1 parent d042c5b1f1
commit d28dce4476
12 files changed
+193 -11

No files matched your search

+10
View File
@@ -123,6 +123,16 @@ class Server(ThreadingHTTPServer):
self.runtime.deletion_guard=lambda:"Modellwechsel läuft" if self.scheduler.transition else None
self.voxcpm_tests=VoxCPMTests(self.catalog.root.parent/'voice-tests',self.profiles,self.voxcpm_runtime)
self.voxcpm_tests.omni_runtime=self.omnivoice_runtime
self.voxcpm_tests.qwen_runtime=self.tts_runtime
self.profiles.qwen_clone_blockers=self.voxcpm_tests.blockers
self.profiles.qwen_clone_ready=lambda:self.tts_runtime.status()["installed"]
clone_marker=self.tts_runtime.root/"voice-profile-created"
if self.tts_runtime.status()["installed"] and not clone_marker.exists():
from profiles import qwen_clone_model,SCHEMAS
model_id=self.tts_runtime.ensure_voice_library()
if not any(p["kind"]=="voice" and qwen_clone_model(p.get("model")) for p in self.profiles.status()["profiles"]):
self.profiles.save(dict(id=None,revision=0,name="Qwen1.7B Stimmklonen",kind="voice",model_id=model_id,parameters={k:v[2] for k,v in SCHEMAS["voice"].items()}))
clone_marker.write_text("Qwen1.7B Base voice profile registered\n")
self.scheduler.evict_voice=self.voxcpm_tests.unload_idle
self.voxcpm_tests.acquire=lambda wait=False:self.scheduler.image_reservation(wait,kind='voice')
self.separator_runtime=SeparatorRuntime(self.catalog.root.parent/'separator-runtime')