Live data from Hacker News

YouTube Transcript – read YouTube videos

youtubetranscript.com

141–144 of 144 posts

Re: YouTube Transcript – read YouTube videos

#141
post #123

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*'

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.

Re: YouTube Transcript – read YouTube videos

#142
post #107

Earlier 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…

Whisper is neat. openai probably open sourced it for a reason and it’s probably because they have something much quicker lol.

I’ve seen vosk used on device and it’s decently quick too on a recent Apple chip.

Re: YouTube Transcript – read YouTube videos

#143
post #63

A 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.

I found a site for seriously searching within youtube subtitles

https://filmot.com

Re: YouTube Transcript – read YouTube videos

#144
post #123

Earlier 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.

Sorry for the late answer, but yes, it would have to be a separate script or command, it is purely fictional, I made it up because it made more sense for the joke to have it, and people might have pointed out that my grep would have filtered out too much context, so I had to add this.

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...

Post reply on HN