feat: add options to set voice bot

This commit is contained in:
lanvent
2023-03-25 18:08:37 +08:00
parent da18e3312a
commit cd86801eac
3 changed files with 100 additions and 59 deletions

View File

@@ -13,8 +13,8 @@ class Bridge(object):
def __init__(self):
self.btype={
"chat": const.CHATGPT,
"voice_to_text": "openai",
"text_to_voice": "baidu"
"voice_to_text": conf().get("voice_to_text", "openai"),
"text_to_voice": conf().get("text_to_voice", "baidu")
}
model_type = conf().get("model")
if model_type in ["text-davinci-003"]: