Skip to main content

RapSong LRC

A small, dependency-free Python tool to validate standard LRC lyric files, shift their timestamps and export SRT subtitles for lyric-video editing. Works with any music genre. It does not generate songs, transcribe audio or create timestamps from untimed text.

Install

Python 3.10 or newer:

pip install rapsong-lrc

Usage

rapsong-lrc lyrics.lrc --check
rapsong-lrc lyrics.lrc --output lyrics.srt
rapsong-lrc lyrics.lrc --shift-ms 250 --output delayed.srt
rapsong-lrc lyrics.lrc --shift-ms -500 --format lrc --output shifted.lrc
rapsong-lrc lyrics.lrc --last-duration-ms 5000 --output longer-ending.srt

Example input (original sample text):

[ti:Practice Session]
[00:01.00]Count the rhythm, find the light
[00:03.50]Write another line tonight

Existing output files are never overwritten. Input is UTF-8 (BOM accepted). Supported timestamps: [mm:ss], [mm:ss.x], [mm:ss.xx], [mm:ss.xxx]. Multiple timestamps on one line are expanded; entries are sorted by time. Standard metadata tags are ignored and [offset:milliseconds] is applied. Negative resulting times clamp to zero. Simultaneous nonempty lines share one SRT cue. Empty timestamped lines end the preceding cue. A cue ends at the next timestamp; the final cue defaults to three seconds. Long gaps can therefore produce long cues. Enhanced word-level LRC and untimed text are rejected. Metadata is not retained in normalized LRC output. This is timing conversion, not beat detection or forced alignment. Exit code 1 indicates a read, validation or write error; argument errors use exit code 2.

RapSong is the related music-creation website. This utility is a standalone local companion for lyric timing workflows. No website account, API key, uploads or network access are required by the package.

Python API

from rapsong_lrc.cli import convert
srt = convert('[00:01.00]Original lyric line', shift=250, srt=True)

License

MIT. Use lyrics you own or have permission to process.

Metadata

Release files for rapsong-lrc 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rapsong-lrc 0.1.0
File Size Uploaded Provenance Actions
rapsong_lrc-0.1.0.tar.gz 4.5 kB Without provenance Details for rapsong_lrc-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rapsong-lrc 0.1.0
File Interpreter ABI Platform Actions
rapsong_lrc-0.1.0-py3-none-any.whl Python 3 none any Details for rapsong_lrc-0.1.0-py3-none-any.whl

Total release size: 9.5 kB

Release files / rapsong_lrc-0.1.0.tar.gz

Download URL rapsong_lrc-0.1.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ed0ca6c07d92e97443b1d54c0466a92d61d7b529498ce9650211972fbd3b2d72
BLAKE2b-256 checksum
How to use checksums
6d541a920245a6026d01f5e9979c7571d53421ebd1369a4f55fb41612d7233a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / rapsong_lrc-0.1.0-py3-none-any.whl

Download URL rapsong_lrc-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d9923ba78b68cdf5bb68a8335d48a53f0cbd44db59fa9cbc800727d1545bfcc
BLAKE2b-256 checksum
How to use checksums
28a630db7afe9df57029d8fc858050201657637266e152de56f8c071a17d8e7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for rapsong-lrc 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page