Coder Social home page Coder Social logo

[Bug]: Unable to contact server. StatusCode: 1006, https://westeurope.api.cognitive.microsoft.com/sts/v1.0/issuetoken Reason: Unexpected server response: 404 about cognitive-services-speech-sdk-js HOT 5 CLOSED

FrancescoSaverioZuppichini avatar FrancescoSaverioZuppichini commented on June 12, 2024
[Bug]: Unable to contact server. StatusCode: 1006, https://westeurope.api.cognitive.microsoft.com/sts/v1.0/issuetoken Reason: Unexpected server response: 404

from cognitive-services-speech-sdk-js.

Comments (5)

glharper avatar glharper commented on June 12, 2024 1

@FrancescoSaverioZuppichini Thank you for using JS Speech SDK, and writing this issue up. In JS SDK, the "Issuetoken" URL is not considered a speech service endpoint. Try using "wss://westeurope.stt.speech.microsoft.com/speech/universal/v2" as the endpoint, and you should be successful.

from cognitive-services-speech-sdk-js.

FrancescoSaverioZuppichini avatar FrancescoSaverioZuppichini commented on June 12, 2024

Okay, if I do

let speechConfig = sdk.SpeechConfig.fromSubscription(process.env.SPEECH_KEY, "westeurope");

it works, I am wondering why

from cognitive-services-speech-sdk-js.

FrancescoSaverioZuppichini avatar FrancescoSaverioZuppichini commented on June 12, 2024

@FrancescoSaverioZuppichini Thank you for using JS Speech SDK, and writing this issue up. In JS SDK, the "Issuetoken" URL is not considered a speech service endpoint. Try using "wss://westeurope.stt.speech.microsoft.com/speech/universal/v2" as the endpoint, and you should be successful.

thanks a lot, so when I create a service on azure I should always use that link?

from cognitive-services-speech-sdk-js.

glharper avatar glharper commented on June 12, 2024

@FrancescoSaverioZuppichini Thank you for using JS Speech SDK, and writing this issue up. In JS SDK, the "Issuetoken" URL is not considered a speech service endpoint. Try using "wss://westeurope.stt.speech.microsoft.com/speech/universal/v2" as the endpoint, and you should be successful.

thanks a lot, so when I create a service on azure I should always use that link?

Well, that's the default service endpoint that the SDK connects to, so using the config API SpeechConfig.fromSubscription(key, region) should produce the same service connection behavior when you start recognition, if you don't need a specific service endpoint.

from cognitive-services-speech-sdk-js.

FrancescoSaverioZuppichini avatar FrancescoSaverioZuppichini commented on June 12, 2024

@FrancescoSaverioZuppichini Thank you for using JS Speech SDK, and writing this issue up. In JS SDK, the "Issuetoken" URL is not considered a speech service endpoint. Try using "wss://westeurope.stt.speech.microsoft.com/speech/universal/v2" as the endpoint, and you should be successful.

thanks a lot, so when I create a service on azure I should always use that link?

Well, that's the default service endpoint that the SDK connects to, so using the config API SpeechConfig.fromSubscription(key, region) should produce the same service connection behavior when you start recognition, if you don't need a specific service endpoint.

Copy that, in my case I will need to create a service under a private network (we have already created that but no idea which URL we should use)

from cognitive-services-speech-sdk-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.