4 ms·
Aha, starting with the YouTube transcript is a great idea. I wanted to start with it but I couldn't find a way to get it from the YouTube iFrame API so I went w
by kavinaidoo 1y ago
Aha, starting with the YouTube transcript is a great idea. I wanted to start with it but I couldn't find a way to get it from the YouTube iFrame API so I went with the Web Speech API to listen and convert.
Forgive me for the confusion, the demo link implies that the transcript is loaded from the video but I see in the code that there's a pre-existing "/txt/definedefine.md" that is loaded. How are these SBV/TTML files downloaded from YouTube in the first place? I assume that it is a separate process? I see you are then using otrgen to presumably convert these so they can be used by oTranscribe.
If I could load the transcripts dynamically when loading the YouTube video that would be a great feature.
- Leftium 1y agoThe demo simply demonstrates how I used my tool. It requires some manual set up: - TTML files are downloaded via CLI: `yt-dlp.exe --skip-download --write-auto-sub --sub-format ttml` - TTML files are converted to the OTR .MD format via my CLI tool - The MD file can be dragged & dropped onto the web app. --- I think it is possible to download SBV/TTML files, but the download must be done from the server due to CORS restrictions. My app didn't go this far due to limitations of the (serverless) platform it is hosted on. Also it was faster to just do the steps manually vs. developing a server that does it. I have seen many services that download the transcript. Here are a few: - https://youtubetranscript.com https://youtubetranscript.com - https://kagi.com/summarizer https://kagi.com/summarizer - https://www.tubepen.com https://www.tubepen.com However, note YouTube may block your server if you download too many transcripts: https://kagifeedback.org/d/4451-universal-summarizer-cant-find-transcript-yet-finds-transcript-for-slightly-different-url-edition/9 https://kagifeedback.org/d/4451-universal-summarizer-cant-fi...
- kavinaidoo 1y agoI think I'll just have to stick with my current method for now, looks like the only way to get it done with static hosting.