Live data from Hacker News

Hieroglyph, a research tool to easily view a YouTube video's transcript

hierogly.ph

11–20 of 62 posts

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#11

I was wanting exactly this a just a few days ago. I wish it were a YouTube or youtube-dl feature.

youtube-dl has options to save subs, though I think you’d have to post-progress them to get them without time stamps.

https://github.com/ytdl-org/youtube-dl/blob/master/README.md...

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#12
You can also get a YouTube video transcript directly from the API with one call, just register for a free developer key and use:

https://youtube.googleapis.com/youtube/v3/captions?part=snip...

official docs: https://developers.google.com/youtube/v3/docs/captions

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#13
post #12

You can also get a YouTube video transcript directly from the API with one call, just register for a free developer key and use: https://youtube.googleapis.com/youtube/v3/captions?part=snip... official docs: https://developers.google.com/youtube/v3/docs/captions

youtube-dl --write-sub --skip-download

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#16
post #15

Does anyone know of a tool (extension?) that will translate captions (even badly) for YouTube videos? Sure I could you use youtube-dl and run the result through Google Translate, but I'm looking for something automated.

This is natively supported on youtube, at least some of the time. I think it might be that you have to have youtube's UI language set to a different language than is spoken in the video.

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#17
post #15

Does anyone know of a tool (extension?) that will translate captions (even badly) for YouTube videos? Sure I could you use youtube-dl and run the result through Google Translate, but I'm looking for something automated.

Someone else posted youtube-dl args to get the transcript in its original language.

It's pretty easy to rig a translation script using pretrained models. [1] If you are building a historical dataset, it's probably better to cache the transcript in its original language, so you can benefit from improvements to translation models as they develop.

[1] https://huggingface.co/transformers/task_summary.html

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#20
post #16
post #15

Does anyone know of a tool (extension?) that will translate captions (even badly) for YouTube videos? Sure I could you use youtube-dl and run the result through Google Translate, but I'm looking for something automated.

This is natively supported on youtube, at least some of the time. I think it might be that you have to have youtube's UI language set to a different language than is spoken in the video.

As far as I can tell, it's available on desktop, but neither in mobile browsers nor the app. The video language being the same or different from the UI language didn't seem to make a difference.

My current working theory is that they couldn't figure out a way to fit a two-level menu on a phone screen, so they just cut that feature...

Post reply on HN