Skip to main content

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

  1. Please install CUDA and cuDNN first according to https://opennmt.net/CTranslate2/installation.html to enable faster-whisper.

  2. Add your OpenAI API key to environment variable OPENAI_API_KEY.

  3. 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


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)

Uploaded Source

Built Distribution

openlrc-0.0.4-py3-none-any.whl (11.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page