SpeechToText-WebSockets-Javascript icon indicating copy to clipboard operation
SpeechToText-WebSockets-Javascript copied to clipboard

Future plans

Open notrs opened this issue 8 years ago • 13 comments

Is there a roadmap for this project? Also, will this be adapted to allow import statements to work?

ex: import {SDK} from 'microsoft-speech-browser-sdk';

notrs avatar May 24 '17 14:05 notrs

Thanks for asking. We will add a roadmap to the wiki soon.

I think your question is more related to ES6?

If you are using typescript you can do imports today because typescript abstracts away the module resolution logic and lets you decide this at compile/transpile time. If you check our gulp file you will see that it compiles to ES5 and uses AMD module resolution. pipe(ts({ target: "ES5", declaration: true, noImplicitAny: true, removeComments: true, module: "AMD", out: 'speech.browser.sdk.js' }))

If you are using javascript you can't do import directly as the library is on ES5. Instead you would have to use require.js to do the module resolution.

If you really want to have ES6 modules and not depend on any external module libraries you can build the sdk yourself by targeting ES6. Just change the build task to target ES6 instead.

RaviPidaparthi avatar May 24 '17 19:05 RaviPidaparthi

I am in a typescript project(Angular) and when trying to import the module, there is an error stating that the file is not a module

http://i.imgur.com/4peBgFr.jpg

notrs avatar May 24 '17 19:05 notrs

I would have expected that to work. Let me write up a working sample and I will share that with you.

RaviPidaparthi avatar May 26 '17 14:05 RaviPidaparthi

Any sort of update on this issue, or when it might get an update?

jawetzel avatar Jun 09 '17 17:06 jawetzel

We are looking into this and will provide an update next week,

RaviPidaparthi avatar Jun 09 '17 22:06 RaviPidaparthi

Thanks for looking into this Rav, is there any kind of issue that came up in trying to resolve this?

notrs avatar Jun 28 '17 13:06 notrs

Is this repo the only official Microsoft SDK for Javascript? Is there a CDN anywhere hosting the SDK?

scarroll32 avatar Jun 29 '17 21:06 scarroll32

Any chance of getting an update on this issue? Thanks!

notrs avatar Jul 19 '17 17:07 notrs

Yes currently this is the only source. Thanks for feedback on CDN. We don't have plans on hosting in CDN currently.

priyaravi20 avatar Jul 21 '17 02:07 priyaravi20

Thanks, but i meant the original issue of this library supporting import statements that was being supported by RaviPidaparthi

jawetzel avatar Jul 21 '17 21:07 jawetzel

Sorry we do not have support currently. We plan to have angularjs support in a future release.

priyaravi20 avatar Jul 24 '17 22:07 priyaravi20

Its not just angularJs support, the ability to import a project using var package = require('package') would allow usage for any javascript frameworks including react, angularjs, and several more. My question ended up being when require will be supported as depicted in the image on post #3

jawetzel avatar Jul 26 '17 18:07 jawetzel

look @ https://github.com/Azure-Samples/SpeechToText-WebSockets-Javascript/pull/52

salvoravida avatar Nov 29 '17 22:11 salvoravida