Converts from SRT to LRC and vice versa.
Project description
This library is used to convert SRT files to LRC files and vice versa.
How to import: from SubLyric import Converter
Available Functions:
Converter.srt_to_lrc(srt_file_path, lrc_file_path)
This function converts srt files to lrc. input file/path is srt_file. output path/file is lrc_file. SRT files use 3 digits for milliseconds while LRC files use 2 digits. Therefore, all the timings will be the off by 0.001 to 0.005 seconds. (Normally it'd be 0.001 to 0.009, But there's a rounding function that helped with making it more accurate.) This timing inaccurance should not be significant nor cause problems in captions/subtitles.
Converter.lrc_to_srt(lrc_file_path, srt_file_path)
This function converts lrc files to srt. input file/path is lrc_file. output path/file is srt_file. LRC files use 2 digits for milliseconds while SRT files use 3 digits. Therefore, all the timings will be the off by 0.001 to 0.009 seconds. This timing inaccurance should not be significant nor cause problems in captions/subtitles. Also, LRC files use minutes, seconds, and milliseconds only. Unlike SRT files that use hours, minutes, seconds, and milliseconds.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file SubLyric-1.0.tar.gz.
File metadata
- Download URL: SubLyric-1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0d8e0f080e9d420f7a09ab1b8155ff6ac84b41087f54120cae5fef7e2bafeaf
|
|
| MD5 |
843500b4977016be3a4ec36c206d7ee0
|
|
| BLAKE2b-256 |
f66895354f1257e3a3ad4189d6d865cfe2a572326faa61ca838da7cb107c7b7e
|
File details
Details for the file SubLyric-1.0-py3-none-any.whl.
File metadata
- Download URL: SubLyric-1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2aac3b660aa97fb592be6810011e202b24fc8cb4778e1882da7452d7afec0014
|
|
| MD5 |
db190c750c5417c231c51feeb1ef3d2c
|
|
| BLAKE2b-256 |
981f4ca7e19b8fb9a326c459d7973857452297286aaf5e356ded130354541e6c
|