Share via

Question about cognitive services javascript Speech to text

Mariano Goni 6 Reputation points
2022-04-23T15:51:02.437+00:00

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....?

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform

0 comments No comments

2 answers

Sort by: Most helpful
  1. Mariano Goni 6 Reputation points
    2022-05-02T08:19:30.097+00:00

    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?

    Was this answer helpful?

    0 comments No comments

  2. Rohit Mungi 49,131 Reputation points Microsoft Employee Moderator
    2022-04-25T08:25:21.077+00:00

    @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.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.