Just wrote a small wrapper around the #lrclib sqlite database dump; fully local #lyrics search from the command line:

https://code.tvl.fyi/tree/users/Profpatsch/lyric.nix

lyric.nix « Profpatsch « users - depot - monorepo for the virus lounge

Using @simon ’s amazing `sqlite-utils` package and a small amount of sql & jq

@simon … and now there’s an mpv script which will load the timed snippets as .lrc file

Basically I have lyrics to most music I could be playing now.

I don’t know any lua, I have no clue about the mpv extension API, the mpv script file is entirely generated by #ChatGPT

You even get the lyrics on the album cover
Next up: https://github.com/marin-m/SongRec is a CLI wrapper around the Shazam API, and that API returns offsets for where in the song the audio snippet started …
which means I can recognize currently playing songs and sync lyrics to those …
GitHub - marin-m/SongRec: An open-source Shazam client for Linux, written in Rust.

An open-source Shazam client for Linux, written in Rust. - marin-m/SongRec

GitHub