Toolkit to work with LRC Files in Python
from lrctoolbox import SyncedLyrics
# Load LRC file
lyrics = SyncedLyrics.load_from_file("example.lrc")
# check if lyrics are synced
assert lyrics.is_synced
# get lyrics as string
print(lyrics.lyrics)
# shift lyrics by 1 second
for line in lyrics.lines:
line.timestamp += 1000
poetry is used for dependency management. Install it with pip install poetry
and then run poetry install
to install all dependencies.