feat: add tts speech model

This commit is contained in:
zhayujie
2023-11-10 10:48:52 +08:00
parent f001ac6903
commit 0c8f292e12
4 changed files with 33 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ class Bridge(object):
self.btype["chat"] = const.LINKAI
if not conf().get("voice_to_text") or conf().get("voice_to_text") in ["openai"]:
self.btype["voice_to_text"] = const.LINKAI
if not conf().get("text_to_voice") or conf().get("text_to_voice") in [const.TTS_1, const.TTS_1_HD]:
if not conf().get("text_to_voice") or conf().get("text_to_voice") in ["openai", const.TTS_1, const.TTS_1_HD]:
self.btype["text_to_voice"] = const.LINKAI
if model_type in ["claude"]:
self.btype["chat"] = const.CLAUDEAI