Get Lyrics and Timing from Youtube Subtitles #173
Replies: 1 comment 1 reply
-
Ok, I started working on this. It could be useful as a source for AI to correct the Karaoke File generated by UltraSinger with Speech Recognition. In that case, the timing and tonality of the syllable can be used from the Speech recognition but the wording is used from the Caption (or any other source if you come up with a good one) What do you guys think? download captions from YouTube Playlist.py.txt download captions from YouTube Playlist.py Get playlist URL from userplaylist_url = input("Enter the YouTube playlist URL: ") Create a Playlist objectplaylist = Playlist(playlist_url) Create a directory to save subtitlesif not os.path.exists('subtitles'): Function to download subtitlesdef download_subtitles(video_url): Iterate over all videos in the playlistfor video in playlist.video_urls: print("Subtitle extraction complete.") |
Beta Was this translation helpful? Give feedback.
-
Hey guys,
would it be possible to get the Lyrics and timing straight from the YouTube subtitles?
Guess that's easier and more reliable than speech recognition.
Beta Was this translation helpful? Give feedback.
All reactions