终端命令行音乐播放器,支持 AI 聊天、频谱可视化、随机/顺序/循环播放
Project description
Holle Music
一个终端命令行音乐播放器,界面类似 Claude Code 终端风格。支持播放本地音乐(MP3、FLAC 等)、AI 聊天解歌、实时频谱可视化、随机/顺序/循环播放模式。
功能特点
- 🎵 播放本地音乐(MP3、FLAC 等格式)
- 🤖 AI 聊天(支持联网搜索,自动解说歌曲背景)
- 📊 实时音频频谱可视化
- 🎨 多种颜色主题(
/color命令切换) - 🎚️ 8 段均衡器
- 🔀 随机 / 顺序 / 单曲循环 播放模式
- 🖼️ 自动提取并显示专辑封面
安装方式
方式一:有 Python 环境(推荐)
pip install holle-music
Holle
方式二:没有 Python 环境(使用 uv)
uv 是一个单文件 Python 包管理器,不需要预先安装 Python:
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uv tool install holle-music
Holle
macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
uv tool install holle-music
Holle
方式三:独立可执行文件(无需任何环境)
从 Releases 下载对应系统的可执行文件:
- Windows: 下载
hollemusic.exe,双击运行 - macOS: 下载
hollemusic,chmod +x hollemusic后运行 - Linux: 下载
hollemusic,chmod +x hollemusic后运行
方式四:从源码运行
git clone https://github.com/Redpinkt5/Holle.git
cd Holle
pip install -e .
Holle
使用说明
启动后进入 TUI 界面,常用操作:
| 按键 | 功能 |
|---|---|
空格 |
播放 / 暂停 |
← / b |
上一曲 |
→ / n |
下一曲 |
Tab |
切换焦点 |
命令行输入区支持以下命令:
| 命令 | 说明 |
|---|---|
/play <歌名> |
播放指定歌曲 |
/pause |
暂停 |
/next |
下一曲 |
/prev |
上一曲 |
/volume <0-100> |
调节音量 |
/color <颜色> |
切换主题色(pink / blue / red / green / yellow / purple / orange / gray / brown / black / white / colorful) |
/search <关键词> |
搜索歌曲 |
/scan <路径> |
扫描文件夹添加到播放列表 |
/help |
查看帮助 |
/quit |
退出 |
打包为可执行文件
如果你想自己打包独立可执行文件:
pip install pyinstaller
python scripts/build-exe.py
打包后的文件位于 dist/hollemusic.exe(Windows)或 dist/hollemusic(macOS/Linux)。
技术栈
- Textual — TUI 框架
- pygame — 音频播放
- mutagen — 音频元数据读取
- librosa — 音频频谱分析
- Pillow — 专辑封面处理
- OpenAI API / SiliconFlow — AI 对话
License
MIT License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file holle_music-0.1.1.tar.gz.
File metadata
- Download URL: holle_music-0.1.1.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
617c51488bffe9699f47986d0a1ab052ab289c4bdc320ea77298807ac14c2608
|
|
| MD5 |
39b22c0a5eb48c1a303587a506c028d3
|
|
| BLAKE2b-256 |
06caf3d842965c57b77c731d6e7f45ceb9915e8bd7b888cb1991e754e14a3de5
|
File details
Details for the file holle_music-0.1.1-py3-none-any.whl.
File metadata
- Download URL: holle_music-0.1.1-py3-none-any.whl
- Upload date:
- Size: 36.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a2f802c73b69ffe4b978f33f26a8c2e2faee8587c0f5524b7abc373621a508c
|
|
| MD5 |
6c5286753c16156cbe28418e07f02e6c
|
|
| BLAKE2b-256 |
48216c49622b240959fbfdab790bd2ea5fb4dffe015b9c6c2378bee3ac7f7626
|