MidCamp / live-captioning

Live caption with speech-to-text using the Chrome browser and your computer's microphone.
https://lc.midcamp.org/
GNU General Public License v3.0
147 stars 26 forks source link

Consider converting this into a web component. #2

Open cosmicdreams opened 5 years ago

cosmicdreams commented 5 years ago

I'm seeing that this entire thing is written in JS / CSS and HTML. Therefore this may be a good candidate for bundling into a web component so that it can be reused in other applications easier, without having to worry about how it's implementation may be impacted by external contexts.

backlineint commented 5 years ago

+1

Was also thinking about the possibility of abstracting some of this into a React component that could be an NPM package. Could be useful for people to make use of the captioning functionality more generically. If this was a web component, then maybe it could be used with various frameworks rather than just be a react thing (although I seem to recall that web components in React can be a bit of a can of worms - maybe that has gotten better.)

cosmicdreams commented 5 years ago

@backlineint I've been able to figure out the WC in React thing before. It's not so bad.

backlineint commented 5 years ago

@cosmicdreams good to know. From my perspective, this would be a fun opportunity to learn.

cosmicdreams commented 5 years ago

Let me wrap up my Karaoke Night app and I'll share with ya