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
or install directly from GitHub:
pip install git+https://github.com/zh-plus/Open-Lyrics
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.
- Concurrent support for both whisper model and GPT request.
- Whisper
- GPT
- 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.4.tar.gz
(9.3 kB
view hashes)
Built Distribution
openlrc-0.0.4-py3-none-any.whl
(11.6 kB
view hashes)