question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure Gov WebChat: Cognitive Speech API points to commercial

See original GitHub issue

Screenshots

image

Version

4.7.1 (through NPM)

Describe the bug

The bot is hosted in Microsoft Azure Government (MAG). Cognitive Speech API in webchat always points to the commercial endpoint. E.g., wss://virginia.stt.speech.microsoft.com instead of wss://virginia.stt.speech.azure.us as stated in this link. This is regardless of using “virginia” or “usgovvirginia” as the region parameter when constructing webSpeechPonyfillFactory.

Steps to reproduce

  1. Obtain an authorization token from https://virginia.api.cognitive.microsoft.us/sts/v1.0/issuetoken
  2. Use the token to construct webSpeechPonyfillFactory let webSpeechPonyfillFactory = await window.WebChat.createCognitiveServicesSpeechServicesPonyfillFactory({ region: 'virginia', authorizationToken: [token] });
  3. Render the webchat window.WebChat.renderWebChat({ directLine: directLineConnection, webSpeechPonyfillFactory, styleOptions }, document.getElementById('webchat')); document.querySelector('#webchat > *').focus();
  4. Click the microphone button on the webchat.
  5. Check the F12 tool. Will see error similar to below

webchat.js:2 WebSocket connection to ‘wss://virginia.stt.speech.microsoft.com/speech/recognition/conversation/cog…eDgZQpkgwBxsstyCZPdzuuAOLA&X-ConnectionId=5E0ACF9313A64E9BB689DE97C939CC44’ failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

Expected behavior

Speech data is successfully transported from webchat to Cognitive Speech API in MAG.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
p-nagpalcommented, Mar 4, 2020

We have opened this issue to get advice from cognitive-services-speech-sdk-js about the STT endpoints.

0reactions
compulimcommented, Mar 20, 2020

Start working on it now.

Will implement the fromHost solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Text/Speech Analysis - Cognitive Services - Microsoft Azure
Explore speech services from Microsoft Azure that include speech recognition, text to speech, speech translation, voice-enabled app features, and more.
Read more >
Cognitive Speech Services Pricing | Microsoft Azure
View pricing for Cognitive Speech Services, a comprehensive new offering that includes text to speech, speech to text and speech translation capabilities.
Read more >
Cognitive Services—APIs for AI Solutions | Microsoft Azure
Azure Cognitive Services brings AI to developers through APIs that don't require machine-learning expertise. Learn how to build AI solutions in 30 days....
Read more >
Speech to Text – Audio to Text Translation | Microsoft Azure
What is Speech to Text? It is a feature within the Speech service that accurately and quickly transcribes audio to text. What are...
Read more >
Text to Speech – Realistic AI Voice Generator | Microsoft Azure
The Speech service, part of Azure Cognitive Services, is certified by SOC, FedRAMP, PCI DSS, HIPAA, HITECH, and ISO. · Your data remains...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found