|
@@ -29,7 +29,7 @@ class Bridge(object): |
|
|
self.btype["chat"] = const.XUNFEI |
|
|
self.btype["chat"] = const.XUNFEI |
|
|
if conf().get("use_linkai") and conf().get("linkai_api_key"): |
|
|
if conf().get("use_linkai") and conf().get("linkai_api_key"): |
|
|
self.btype["chat"] = const.LINKAI |
|
|
self.btype["chat"] = const.LINKAI |
|
|
if not conf().get(":voice_to_text") or conf().get("voice_to_text") in ["openai"]: |
|
|
|
|
|
|
|
|
if not conf().get("voice_to_text") or conf().get("voice_to_text") in ["openai"]: |
|
|
self.btype["voice_to_text"] = const.LINKAI |
|
|
self.btype["voice_to_text"] = const.LINKAI |
|
|
if not conf().get("text_to_voice") or conf().get("text_to_voice") in ["openai", 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 |
|
|
self.btype["text_to_voice"] = const.LINKAI |
|
|