3 ms·
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
by fy20 6y ago
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.
- Thorrez 6y agoThis 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.
- yorwba 6y agoAs 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...
- fy20 6y agoI just tested, and yes on desktop there is an 'Auto-translate' option, even for videos with 'auto-generated captions'. However on mobile (YouTube app on Android, Firefox, Chrome) and my TV the 'Auto-translate' option is missing, so I can only view the generated subtitles in the original language. I mostly watch on mobile or TV, so :-/
- rmrfstar 6y agoSomeone 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 https://huggingface.co/transformers/task_summary.html
- Leftium 6y agoThis is the equivalent of "use youtube-dl and run the result through Google Translate[1]:" youtube-dl --sub-langs [DESIRED LANGUAGE] [1]: https://github.com/ytdl-org/youtube-dl/blob/master/README.md#subtitle-options https://github.com/ytdl-org/youtube-dl/blob/master/README.md...
- rasz 6y agoJSON.parse(ytplayer.config.args.player_response).captions.playerCaptionsTracklistRenderer.captionTracks[0].baseUrl just add &tlang=XX where XX is one of JSON.parse(ytplayer.config.args.player_response).captions.playerCaptionsTracklistRenderer.translationLanguages