Skip to content
项目

关于

Lyrics of whatever is playing, word by word, in giant pixel letters in your terminal

开发工具

这些数字如何统计

8 星标0 复刻 +1 24小时

实测星标增长

24小时
+1
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

sylla

Lyrics of whatever is playing, word by word, in giant pixel letters in your terminal.

https://github.com/user-attachments/assets/201ecd00-3f01-4b40-b7c6-11caa1f3203d

  • Works with any player that speaks MPRIS (Spotify, Firefox/YouTube, mpv, VLC, ...) through playerctl.
  • Real per-word timing when the song has it, otherwise the words are spread over each line by syllables.
  • Keeps its own clock, so browsers that report the position late don't make the lyrics stutter.
  • Accents included (CORAÇÃO, ¿QUÉ?, PINGÜINO), colors you can set, and your own .lrc files.
  • No dependencies besides Python and playerctl.

Requirements

  • Linux (MPRIS)
  • Python 3.11+
  • playerctl
  • Internet access to fetch lyrics (not needed for songs with a local .lrc)

Install

pipx install sylla-lyrics        # or: uv tool install sylla-lyrics

No pipx? Install it from your distro: sudo pacman -S python-pipx (Arch), sudo apt install pipx (Debian/Ubuntu) or sudo dnf install pipx (Fedora). Plain pip install is refused by most distros ("externally-managed-environment").

The package is called sylla-lyrics on PyPI; the command is sylla. Then play something and run sylla in a big terminal window (full screen looks best).

To update to a new version:

pipx upgrade sylla-lyrics        # or: uv tool upgrade sylla-lyrics

Running from source, without installing:

git clone https://github.com/caioax/sylla && cd sylla
PYTHONPATH=src python3 -m sylla

Options: --player firefox, --offset 0.3, --no-line, --size 1-12, --debug (see --help). --list-players shows the players sylla can follow (and the names to use with --player).

Keys: +/- or the arrows shift the lyrics live, 0 resets the shift, q quits.

Configuration

Optional, at $XDG_CONFIG_HOME/sylla/config.toml (usually ~/.config/sylla/config.toml), or another file with --config. Command line options win over the file. Every key is optional:

player = "spotify"   # follow only players whose name starts with this
offset = 0.0         # seconds to shift the lyrics (positive = earlier)
line = true          # show the whole line under the big word
letters = 14         # letter size: a word with this many letters fits
size = 0             # 1-12 forces a fixed letter size, 0 = automatic
wide = 1.5           # letter shape: higher = wider, lower = taller

[colors]             # "default", a terminal color name, 0-255 or "#rrggbb"
word = "blue"        # the big word
current = "magenta"  # the current word in the line under it
line = "default"     # the rest of that line (always dimmed)
status = "default"   # the status line at the bottom (always dimmed)

Color names (black, red, green, yellow, blue, magenta, cyan, white, and bright- versions of each) use your terminal's palette, so they follow its theme.

Where the lyrics come from

  1. A .lrc file next to the audio file (song.mp3 → song.lrc), for players that report local files (mpv with mpv-mpris, VLC, Rhythmbox, ...). It is read fresh every time.
  2. NetEase Cloud Music: per-word timing for many songs. This is an unofficial API: it may change, break or be blocked in some regions; when it fails, sylla quietly moves on to the next source.
  3. LRCLIB: per-line timing.

Found lyrics are cached in $XDG_CACHE_HOME/sylla (usually ~/.cache/sylla). Songs without lyrics are not cached: sylla searches again two minutes later.

Development

PYTHONPATH=src python3 -m unittest discover -s tests

Tests use only the standard library (unittest), like the rest of the project.

Support

If sylla is useful to you, you can support it on GitHub Sponsors or Ko-fi.

License

GPL-3.0-only

探索相关项目

加载中…