Azure-Samples/SpeechToText-WebSockets-Javascript

cannot connect to CRIS service: HTTP authentication failed; no valid credentials available

amenglong opened this issue · 3 comments

Hi team,

Followed the 3 steps in order to connect to a customized end point.
Just notice in last step besides "gulp build" also had to"gulp bundle" to update speech.sdk.bundle.js. (If not, no matter what key, even a wrong key, I insert in "wss://key.api.cris.ai" the service always works..)

But when testing get this error on the web console:

Firefox:
firefox

Chrome:
chrome_log

Edge:
image

FYI when connecting to standard voice recognition service (wss://speech.platform.bing.com) there is no problem.

What am I doing wrong? Thanks!

Please double-check that the key that the error message shows is really a subscription key for Custom Speech Service and that it is the key associated with your deployment.

Thanks,

Andreas

Yes, this was the problem. Now works :)

As a suggestion on the documentation you guys can mention:

  1. gulp bundle
  2. CRIS password

Thanks!

@amenglong could you please elaborate the solution? I am having the same issue