Speech sample code returning "Unspecified connection error (200)" - HELP!

Ben 1 Reputation point
2020-11-07T10:03:58.737+00:00

I'm following the sample code provided my MS here:

https://learn.microsoft.com/en-gb/azure/cognitive-services/speech-service/get-started-speech-to-text?tabs=script%2Cbrowser%2Cwindowsinstall&pivots=programming-language-csharp

I have created an instance of the Speech service in Azure, in west europe. I have instantiated the "SpeechConfig" using one of the keys from the instance of the speech service as the "subscription key" param (shown as xxx below) and "westeurope" for the region param, as follows:

speechConfig = SpeechConfig.FromSubscription("xxx", "westeurope");

When I run the code I get the following error:

WebSocket upgrade failed: Unspecified connection error (200). SessionId: 1013492dc1fc4d98abe7258141e8c324

I am stuck - I don't see any hits on the speech instance in Azure either. Please help! I can't find any info on the web about this error but so I'm pretty sure I'm doing something stupid 😫

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,765 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,171 Reputation points
    2020-11-17T10:26:30.937+00:00

    Following up. Please ensure that you're entering the correct subscription key and region. If error persists, then I encourage you to leverage the Help+Support blade in Azure portal to submit a request for further investigation. Hope this helps. Thanks.

    1 person found this answer helpful.

Your answer

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