GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - netgian/lyric2srt: converts synchronized lyrics (in timestamp format) to SRT files

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
lyric2srt.py
lyric2srt.py
 
 

Repository files navigation

lyric2srt

lyric2srt is a Python script that converts synchronized lyrics (in timestamp format) to SRT files, the standard format used for subtitles. This project was made possible thanks to the lrclib.net API.

Requirements

  • Python 3.7 or higher.
  • Required libraries:
    • requests

Install requests by running:

pip install requests

Usage

The script can be run from the command line with the following arguments:

python lyric2srt.py <track> <artist> [--album <album>] [--duration <duration>]

Example:

python lyric2srt.py "Shape of You" "Ed Sheeran" --album "Divide" --duration 233

This command will fetch the synchronized lyrics of the song and save them in a lyrics.srt file.

Output

The output file (lyrics.srt) contains the synchronized lyrics in SRT format, ready to be used as subtitles in compatible media players.

Example SRT output:

1
00:00:00,000 --> 00:00:10,500
The club isn't the best place to find a lover

2
00:00:10,500 --> 00:00:15,200
So the bar is where I go

Contribution

If you'd like to contribute, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

converts synchronized lyrics (in timestamp format) to SRT files

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.