Transcribe and translate voice into LRC file.
Project description
Open-Lyrics
Open-Lyrics is a open-source project to transcribe ( using faster-whisper) voice file and translate/polish (OpenAI-GPT) the text.
This new project is rapidly underway, and we welcome any issues or pull requests.
Installation
-
Please install CUDA and cuDNN first according to https://opennmt.net/CTranslate2/installation.html to enable
faster-whisper
. -
Add your OpenAI API key to environment variable
OPENAI_API_KEY
. -
This project can be installed from PyPI:
pip install openlrc
Usage
from openlrc import LRCer
lrcer = LRCer()
lrcer('./data/test.mp3') # Generate ./data/test.lrc
Todo
- Add transcribed examples.
- Song
- Podcast
- Audiobook
- Make translate prompt more robust.
- Add local LLM support.
- Multi-thead support for both whisper model and GPT request.
- Automatically fix json encoder error using GPT.
Credits
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
openlrc-0.0.3.tar.gz
(7.8 kB
view hashes)