mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-04-28 03:30:20 +00: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:
parent
7068a74998
commit
78b4b87e54
3 changed files with 16 additions and 37 deletions
7
embd_res/qwen3tts_voices_json.embd
Normal file
7
embd_res/qwen3tts_voices_json.embd
Normal file
File diff suppressed because one or more lines are too long
19
koboldcpp.py
19
koboldcpp.py
|
|
@ -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"] = ""
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue