Skip to content

A simple lyric video generator based on the Whisper speech-to-text API.

License

Notifications You must be signed in to change notification settings

r2nery/lyrics-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyric video maker

This is a simple lyric video generator based on Whisper.

Inputs are YouTube URLs for the background video and song. The most salient minute is detected with spectrogram analysis and the lyrics are generated using the OpenAI API with the Whisper model. Input videos must be 16:9 and output is 9:16. Parameters such as length, fontsize, bitrate and more can also be tweaked.

bot = VideoBot(
        bg_url,
        song_url,
        results_dir,
        downloads_dir,
        lyrics_dir,
        length=30,
        padding=50,
        snippets=2,
        verbose=False,
    )
    
bot.run()

About

A simple lyric video generator based on the Whisper speech-to-text API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages