77b2c0a479
1、加入了NLP三选一:xfaiui、yuan、chatgpt; 2、修复由pyaudio bug导致的录音错误; 3、修改远程音频输入输出设备同时只允许连1个;
11 lines
311 B
Python
11 lines
311 B
Python
from utils import config_util as cfg
|
|
from ai_module.yuan1_0.yuan1_0_dialog import Yuan1Dialog
|
|
|
|
def question(text):
|
|
account = cfg.key_yuan_1_0_account
|
|
phone = cfg.key_yuan_1_0_phone
|
|
yuan1_dialog = Yuan1Dialog(account, phone)
|
|
prompt = text
|
|
a_msg = yuan1_dialog.dialog(prompt)
|
|
return a_msg
|