Play Music with xiaomi AI speaker
Project description
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)
感谢
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xiaomusic-0.1.1.tar.gz
(8.9 kB
view hashes)
Built Distribution
xiaomusic-0.1.1-py3-none-any.whl
(10.1 kB
view hashes)
Close
Hashes for xiaomusic-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb716ad4605be1fad7c3230878054f805e34650d290f2f2f93bbb9c59fec733 |
|
MD5 | 8eec2592155c422c0575978d7b03bee3 |
|
BLAKE2b-256 | 2034529913137c370753440a6ae8c42ba0679bda1ec8012edd7b4ae4759f5886 |