kavinaidoo

Joined 3 years ago

Karma
47
Submissions
8
Member since
Oct 28
kavi.sblmnl.co.za
View on Hacker News

Recent submissions

Comment · 1 year ago
Comment · 1 year ago
I 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.
Comment · 1 year ago
Yeah, I also wanted to "pipe" the audio directly to the Web Speech API but had to resort to using the mic. Another feature I wanted to add was to have a keyboard shortcut insert a screenshot of the video into the notes. Handy for diagrams etc but I hit some roadblocks there too and the workarounds were getting crazy.

Regarding the time-limit, I'm entirely accessing the audio stream using the Web Speech API and it "decides" (usually when there's a sufficient pause) when to finalize a recognition result. It was also firing a "recognition.onend" event after a certain amount of time (some old details here: https://stackoverflow.com/questions/38213580/chromes-webkits...) so I have a workaround where if the user did not turn off speech-to-text, it is immediately restarted. You'll see console warnings "userStopped == false - trying to restart" when this happens.

I assume you'll have no such issues because you'll be handling the "raw" audio data and not working through this API. Also, I've noticed that when using the Web Speech API on Safari, it does not "hear" what the tab is playing. It only hears external audio. I'm not sure whether this will be an issue for you but for me it means my app is Chrome only (suboptimal). Forgive me for my naïveté in this arena, It's the first time I'm using any browser audio API.

Would your tool run on a server and work with a frontend for YT link ingestion or will you just use it yourself from the cli?

Comment · 1 year 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.

Comment · 2 years ago
You’re 100% correct with the insanity. I ended up buying the last supported 27” 5K iMac with the intent of using it until support ends. Then I’ll replace the innards with a display driver board, making it an external display. This is a significant cost saving vs the equivalent Studio Display.
Comment · 3 years ago
It appears that my web hosting can't survive hacker news. Sorry for that! Thanks to andreareina for commenting a working archive link. Also thanks to stereo for commenting my intro YouTube video and another post I wrote on MagSafe.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton