Unable to connect to the Windows Voice Assistant Client (error 1002 and 401)

Fabien Plouvier 6 Reputation points
2021-04-13T08:03:17.457+00:00

Hello,

#### Description :
I have followed all the steps presented here (https://video2.skills-academy.com/en-us/azure/cognitive-services/speech-service/tutorial-voice-enable-your-bot-speech-sdk) to the letter, in order to communicate with my bot via the voice assistant (in order to create a voice assistant)

#### However, although I checked that :

  • the subscription key and the region (westus) are correct and taken into account by Azure
  • I have set "Enable Streaming Endpoint" box and toggled Web sockets to On.

#### In the assistant, I put :

  • a connection profile (random)
  • the subscriber key
  • its region
  • the language (en-FR) which is also taken into account by Azure.

### The error message is the following:
Error (ConnectionFailure) : Connection was closed by the remote host. Error code: 1002. Error details: The server returned status code '401' when status code '101' was expected.

### Additional information :
I have attached a screenshot of the files in the bot via the Azure console

87239-image.png

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
821 questions
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,657 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,755 questions
{count} vote

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 50,716 Reputation points
    2021-04-14T13:35:04.083+00:00

    Hello,

    Could you please check if your Azure App Service is running. If it is, try restarting your App Service. This helps when you set up everything correct but still not works. Could you please try?

    https://video2.skills-academy.com/en-us/azure/cognitive-services/speech-service/tutorial-voice-enable-your-bot-speech-sdk#enable-web-sockets

    Could you please also check your appsettings.json to see if every crendtial is correct?

    Regards,
    Yutong

    0 comments No comments

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.