Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

在树莓派上部署小智可以最大化利用闲置树莓派3b+/4b/5,丰富的接口便于扩展, 使用python脚本即可部署,添加gpio引脚开关非常方便开启对话模式,开机自动运行。

License

Notifications You must be signed in to change notification settings

kemomi/RaspberryPi-xiaozhi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

介绍

在树莓派上部署小智可以最大化利用闲置树莓派3b+/4b/5,丰富的接口便于扩展, 使用python脚本即可部署,添加gpio引脚开关非常方便开启对话模式,开机自动运行。

小智项目地址

https://github.com/78/xiaozhi-esp32

小智项目教程文档

https://ccnphfhqs21z.feishu.cn/wiki/F5krwD16viZoF0kKkvDcrZNYnhb

飞书文档

https://ccnphfhqs21z.feishu.cn/wiki/EH6wwrgvNiU7aykr7HgclP09nCh (附配件链接)

服务端开源地址

https://github.com/xinnan-tech/xiaozhi-esp32-server

第一版本

安装必要要的库比如 opuslib

pip install opuslib

gpio17(11引脚)连接开关 把程序命名为xiaozhi.py后放在/home/pi目录下 设置开机启动

  1. 创建 autostart目录(如果没有的话) 首先,确保 ~/.config/autostart/目录存在。如果没有该目录,可以手动创建它:
 mkdir -p ~/.config/autostart
  1. 创建.desktop文件在 autostart目录中,为你的程序创建一个 .desktop 文件。这是一个文本文件,告诉系统在用户登录时如何启动程序。创建一个名为 xiaozhi.desktop的文件:
 nano ~/.config/autostart/xiaozhi.desktop

然后,在文件中添加以下内容:

[Desktop Entry]
Name=XiaoZhi
Exec=python3 /home/pi/xiaozhi.py
Type=Application
X-GNOME-Autostart-enabled=true
Comment=Run xiaozhi.py at startup
  1. 设置权限 确保 .desktop 文件具有执行权限:
 sudo chmod +x ~/.config/autostart/xiaozhi.desktop

第二版本

保持会话(更新中)

第三版本

About

在树莓派上部署小智可以最大化利用闲置树莓派3b+/4b/5,丰富的接口便于扩展, 使用python脚本即可部署,添加gpio引脚开关非常方便开启对话模式,开机自动运行。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /