GithubHelp home page GithubHelp logo

takesi0627 / audiolyric2srt Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 5 KB

A package to generate SRT subtitle files by syncing an MP3 audio file with a text file containing lyrics.

License: MIT License

Python 100.00%

audiolyric2srt's Introduction

AudioLyric2SRT

AudioLyric2SRT is a Python package that allows you to generate subtitle files (SRT) by syncing an audio file (MP3) with a text file containing lyrics. The package automatically aligns the audio with the lyrics, making it an efficient tool for creating accurate subtitles for your audio content.

Features

  • Load MP3 audio files and text files containing lyrics
  • Sync the audio with the lyrics using silence detection
  • Generate SRT subtitle files based on the synced audio and lyrics

Installation

To install AudioLyric2SRT, run the following command:

pip install AudioLyric2SRT

Usage

You can use AudioLyric2SRT as a command-line tool or within a Python script.

Command-line Usage

To use AudioLyric2SRT from the command line, run the following command:

audiol2srt <mp3_file> <lyrics_file> <output_srt>

Replace <mp3_file>, <lyrics_file>, and <output_srt> with the respective paths to the MP3 file, lyrics text file, and output SRT file.

Python Script Usage

To use AudioLyric2SRT in a Python script, follow this example:

from AudioLyric2SRT import load_audio, load_lyrics, sync_lyrics_with_audio, create_srt_file

mp3_file = "path/to/mp3_file.mp3"
lyrics_file = "path/to/lyrics

audiolyric2srt's People

Contributors

takesi0627 avatar

Stargazers

 avatar Kenifornication avatar  avatar

Watchers

 avatar

Forkers

officialwwfem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.