If you want an CLI version of a similar idea, you can use yt-dlp and some simple jq to pull down the captions for a file: curl `\ yt-dlp -j "https://www.youtube.com/watch?v=aeWyp2vXxqA" | \ jq -r '.automatic_captions.en[] | select(.ext=="json3") | .url'`
... | split_sentences | grep -viE '*vpn*'
YouTube Transcript – read YouTube videos
141–144 of 144 posts
Re: YouTube Transcript – read YouTube videos
#142Earlier quoted context omitted.
This is great. Sharing like this is what I love about hn. Do you have any other features planned? I’m considering a master keyword list to index against any text that comes in.
The only thing I have in my "someday" list of tasks for Glancer is the possibility of adding/using the whisper binary to get captions when/if unavailable. Aside from that I just keep it more or less working by using it myself (and to be fair on this one, I wish I wrote it in another language, Haskell can be a bit finicky to build if you do it sparingly). Any addition that is on the "view" layer (the generated HTML) i…
I’ve seen vosk used on device and it’s decently quick too on a recent Apple chip.
Re: YouTube Transcript – read YouTube videos
#143A supremely useful site that searches YouTube transcripts is https://youglish.com . It shows you pronunciations in context for any word or name.
Thanks for the link! This site actually has a database of youtube transcripts unlike OP. Shame you can't search fixed strings, like two words in exact order. Though it seems genuinely useful for learning pronunciation as advertised.
Re: YouTube Transcript – read YouTube videos
#144Earlier quoted context omitted.
... | split_sentences | grep -viE '*vpn*'
I apologize for the question, but I am not entirely clear where "split_sentences" is. Is it a separate script? I have been looking for something with that sort of functionality for a while, very often for this very purpose, splitting transcripts.
I'm sure there are many unix-y tools for this purpose, but I don't know of them. If you're looking for something that's installed everywhere, maybe a very big awk or sed regex with multiline wizardry could do the trick for most easy-to-parse latin languages and you'd just have to copypaste it around. It prolly becomes harder for regexes once you start working with right-to-left languages like Arabic, and languages with different ponctuation, so it might not be i18n-friendly.
Related Stackoverflow : https://stackoverflow.com/questions/33704443/python-regexp-s...