r2nery / lyrics-bot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Python 100.0%