Skip to main content

Play Music with xiaomi AI speaker

Project description

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)

感谢

Project details


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.0.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

xiaomusic-0.1.0-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page