mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-26 15:15:16 +02:00
fixed compile issue for tts on ci (+1 squashed commits)
Squashed commits: [d6f778499] fixed compile issue for tts on ci
This commit is contained in:
+9
-10
@@ -8722,16 +8722,15 @@ def kcpp_main_process(launch_args, g_memory=None, gui_launcher=False):
|
||||
voicecount = 0
|
||||
voicelist = []
|
||||
|
||||
voicelist.append("kobo")
|
||||
voicebank["kobo"] = ""
|
||||
voicelist.append("cheery")
|
||||
voicebank["cheery"] = ""
|
||||
voicelist.append("sleepy")
|
||||
voicebank["sleepy"] = ""
|
||||
voicelist.append("shouty")
|
||||
voicebank["shouty"] = ""
|
||||
voicelist.append("chatty")
|
||||
voicebank["chatty"] = ""
|
||||
try:
|
||||
with open(os.path.join(embddir, "qwen3tts_voices_json.embd"), mode='r', encoding='utf-8', errors='ignore') as f:
|
||||
vdict = json.load(f)
|
||||
for key, value in vdict.items():
|
||||
voicelist.append(key)
|
||||
voicebank[key] = value
|
||||
except Exception:
|
||||
print("Could not find Embedded Qwen3TTS voices.")
|
||||
|
||||
voicelist.append("random")
|
||||
voicebank["random"] = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user