概要
Lyrics of whatever is playing, word by word, in giant pixel letters in your terminal
開発ツール計測したスター増加
- 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
.lrcfiles. - 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
- A
.lrcfile 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. - 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.
- 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
関連プロジェクトを探す
読み込み中…