xinhecuican/QSmartAssistant
一个模块化,全过程可离线,低占用率的对话机器人/智能音箱
QSmartAssistant
一个模块化,全过程可离线,低占用率,高效率的对话机器人/智能音箱
特点
- 使用c++qt开发,深度学习模型大多选择onnxruntime,提高运行速度
- 前处理,唤醒,语音端点检测,ASR,TTS,NLU全模块化,可以非常简单的开发组件。拥有插件机制,可以定制自己的插件
- 支持porcupine,openwakeword,duilite,snowboy唤醒模型,可以自由定制唤醒词。支持cobra,fvad,silero,duilitevad模型。搭配webrtc和speex,可以精确唤醒并降低误唤醒率。
- 支持流式ASR和TTS
- 支持rasa,可以自己收集对话语料训练NLU
- 支持自定义插件,可以选择加载哪些插件及加载顺序
- 支持mqtt
- 支持多机器联合控制
处理流程

麦克风输入的语音信号经过前处理处理掉噪音,混响和回声后,送入唤醒引擎。如果成功唤醒则激活Vad来收集说话人的命令。再将语音信号提交给ASR转换成文字。NLU根据文本获得其中的意图,然后交由插件系统处理,最后使用TTS将处理结果说出来。
硬件环境
测试机器:
- arm 树莓派4b 64位
- x86 ubuntu22.04
内存需求:全过程离线的情况下占用大约在1.2G到1.4G之间,推荐至少2G内存,并且需要开2G的虚拟内存
快速开始
git clone https://github.com/xinhecuican/QSmartAssistant
cd QSmartAssistant
cp Data/default_config.json Data/config.json
cp Data/plugin_order_default.txt Data/plugin_order.txt
cd scripts
./install_snowboy.sh
./install_openssl.sh
./install_sherpa_onnx.sh
./install_onnxruntime.sh
./install_rasa.sh
./install_neteasejs.sh
cd ..
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWAKEUP_DUILITE=OFF -DVAD_DUILITE=OFF -DWAKEUP_SNOWBOY=ON -DVAD_SILERO=ON -DNETEASE_USE_JS=ON -B build/
# config.json中的配置需要按需进行更改
安装和配置
Similar Projects
Discover other similar projects and AI models.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
WhisperKit Repo WhisperKit is part of Argmax OSS, an On-device Speech AI SDK for Apple Silicon: https://github.com/argmaxinc/argmax-oss-swift Paper Check out the WhisperKit paper and presentation from ICML 2025: https://icml.cc/virtual/2025/47854 Pr...
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
21 Lessons, Get Started Building with Generative AI
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
A high-throughput and memory-efficient inference and serving engine for LLMs
Reverse engineer anything with agents, from app behavior down to native binaries.