参考:https://blog.csdn.net/weixin_42357472/article/details/136305123(llm+tts)
https://blog.csdn.net/weixin_42357472/article/details/136411769 (asr+vad)
这里LLM用的是chatglm;电脑声音播报用的playsound
代码:
##运行
python main.py
main.py
from multiprocessing import Process, Pipe
import requests
import json
from playsound import playsoundfrom asr_vad import main##llm
def get_response(text):headers =