Skip to content

huang-kenneth/Youtube-Lyric-Video-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube to mp4 Lyric Generator

We create a lyric video and remove vocals - just like videos when we go karaokeing!

We use OpenAI's Whisper to create our speech-to-text subtitles for our videos and use other libraries to process and create our final video.

This project is ultimately part of a bigger project that aims to recreate a karaoke machine with improvements to the system. Generally, karaoke spots have a limited selection of songs - our code allows the user to generate their own karaoke/lyric video with just a Youtube link!

Installation

To set up your environment, run:

conda create -n <environment-name> --file req.txt

From https://huggingface.co/ggerganov/whisper.cpp/tree/main, download "ggml-base.en.bin" and drop it into SubsGen/whisper-bin-x64.

Note: to use other models, download a different model and change the code's input model. The default is "ggml-base.en.bin".

After setup, enter the virtual environment and run:

python app.py

You should see a homepage after going to the given url in the console (ex. http://127.0.0.1:5000/): Home Page

Now enter a valid Youtube Link, select vocal preferences, and click run script! A video will display on the page once code is done running.

Example output

Instrumentals + Lyrics:

Glad.You.Came.mp4

Update 9/15/23

Added a front-end GUI using Flask. Adjusted code to work with GUI, added new folders and changes output destinations.

To do (Mostly UI/Code Cleaning Changes):

  • Make selecting Whisper models easier for users.
  • Allow users to change the background of video.
  • Follow words as song progresses (like karaoke videos)

About

Generates mp4 files based off an inputted Youtube song

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published