Go to file
2023-10-14 22:25:26 +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 first commit 2023-10-14 22:25:26 +08:00
README.md first commit 2023-10-14 22:25:26 +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 下载。

运行

先参考 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)

感谢