watson-developer-cloud / speech-to-text-nodejs

:microphone: Sample Node.js Application for the IBM Watson Speech to Text Service
https://speech-to-text-demo.ng.bluemix.net
Apache License 2.0
1.1k stars 708 forks source link

Split front-end code into a library #22

Closed nfriedly closed 7 years ago

nfriedly commented 9 years ago

First off, this is an awesome demo and you guys did a great job on it.

That said, the front-end code is fairly complex and I think that at least part of it probably belongs in a library that we stick in bower and/or npm and then just reference it here.

That would ease developing new application because it would be something that one could simply drop in and have a clear line of "what code I can reuse without thinking about it" vs "what code I need to write for myself".

germanattanasio commented 9 years ago

I think that was the idea that @esbullington had when he wrote it.

daniel-bolanos commented 9 years ago

Yes, I suggested that to him, I wanted us to build a JS object for STT and another one for TTS, following the speech of the W3C https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html Basically encapsulate all the low level details so the developer does not need to deal with that.

We definitely need to refactor the code and produce those JS objects to make the developers life a lot easier. We will do it when we find some time...

nfriedly commented 9 years ago

Cool, just wanted to throw it out there.

daniel-bolanos commented 9 years ago

Thank you @nfriedly, we appreciate the feedback.

Dani

germanattanasio commented 8 years ago

This is being implemented #86.

nfriedly commented 7 years ago

This is done, lib is at https://github.com/watson-developer-cloud/speech-javascript-sdk, and this demo is now using the lib under the hood.