Skip to content

Commit d35b4ce

Browse files
KomoriDevFrostN0v0
andcommitted
🐛 修复 TTS 参考语言选择错误
Co-authored-by: KomoriDev <[email protected]> Co-authored-by: FrostN0v0 <[email protected]>
1 parent 4cae0d4 commit d35b4ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nonebot_plugin_deepseek/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ def get_tts_model(self, preset_name: str) -> CustomTTS:
344344
if model.name == preset_name and f"{model.model_name}" in json_config.available_tts_models:
345345
return model
346346
if preset_name in json_config.available_tts_models:
347-
return CustomTTS(name=preset_name, model_name=preset_name)
347+
prompt_text_lang = list(json_config.available_tts_models[preset_name].keys())[0]
348+
return CustomTTS(name=preset_name, model_name=preset_name, prompt_text_lang=prompt_text_lang)
348349
raise ValueError(f"TTS Model {preset_name} not valid")
349350

350351

0 commit comments

Comments
 (0)