参考: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
1、实时语音识别版本
注意:暂时这项目有个缺陷就是tts的喇叭声音严重影响到asr麦克风的识别,需要一些回声消除技术才行; 参考:https://m.baike.com/wikiid/5493873983385561108 https://www.rtcdeveloper.cn/cn/community/blog/25092
代码:
##运行
python main.py
main.py
from multiprocessing import Process, Pipe
import requests
import json
from playsound import playsound
fro
推荐文章
发表评论