Go to file
2023-10-14 23:42:33 +08:00
.github/workflows first commit 2023-10-14 22:25:26 +08:00
xiaomusic first commit 2023-10-14 22:25:26 +08:00
.gitignore first commit 2023-10-14 22:25:26 +08:00
install_dependencies.sh first commit 2023-10-14 22:25:26 +08:00
LICENSE Initial commit 2023-10-14 19:39:59 +08:00
pdm.lock first commit 2023-10-14 22:25:26 +08:00
pyproject.toml update version 2023-10-14 22:30:50 +08:00
README.md Update README.md 2023-10-14 23:42:33 +08:00
requirements.txt first commit 2023-10-14 22:25:26 +08:00
xiaomusic.py first commit 2023-10-14 22:25:26 +08:00

xiaomusic

使用小爱同学播放音乐,音乐使用 yt-dlp 下载。

运行

  • 使用 install_dependencies.sh 下载依赖
  • 使用 pdm 安装环境
  • 参考 xiaogpt 设置好环境变量
export MI_USER="xxxxx"
export MI_PASS="xxxx"
export MI_DID=00000

然后启动即可。默认监听了端口 8090 , 使用其他端口自行修改。

pdm run xiaomusic.py

支持口令

  • 播放歌曲
  • 播放歌曲+歌名 比如:播放歌曲周杰伦晴天
  • 下一首
  • 单曲循环
  • 全部循环

已测试设备

"L07A": ("5-1", "5-5"),  # Redmi小爱音箱Play(l7a)

感谢