Question about cognitive services javascript Speech to text

Mariano Goni 6 Reputation points

Why on earth do we have to set up a Node server in order to use the js api for recognizing voice from a microphone...!?

Isn't the Microsoft Service API supposed to work like google ones, or even web speech....?

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,607 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. romungi-MSFT 43,681 Reputation points Microsoft Employee

    @Mariano Goni I think you are referring to the steps mentioned in this sample. This sample should work locally with a JS supported browser without running the node server, just by running index.html and keying in your subscription key.
    This sample uses the node server in case of web server deployments which can retrieve the token from the speech endpoint without exposing the keys in the application. Hope this helps!!

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

  2. Mariano Goni 6 Reputation points

    Sorry, that sample lacks the microsoft.cognitiveservices.speech.sdk.bundle.js file which is needed for it to work.

    There's no place in the internet to find a pure js file like that, only some "app" on apparently node that has no file as i said, like that.

    Also, since you have to key in your subscription key, why is there no sample link online to test it?

    0 comments No comments