Azure Gov WebChat: Cognitive Speech API points to commercial
See original GitHub issueScreenshots
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
- Obtain an authorization token from https://virginia.api.cognitive.microsoft.us/sts/v1.0/issuetoken
- Use the token to construct webSpeechPonyfillFactory
let webSpeechPonyfillFactory = await window.WebChat.createCognitiveServicesSpeechServicesPonyfillFactory({ region: 'virginia', authorizationToken: [token] });
- Render the webchat
window.WebChat.renderWebChat({ directLine: directLineConnection, webSpeechPonyfillFactory, styleOptions }, document.getElementById('webchat')); document.querySelector('#webchat > *').focus();
- Click the microphone button on the webchat.
- 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:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We have opened this issue to get advice from cognitive-services-speech-sdk-js about the STT endpoints.
Start working on it now.
Will implement the
fromHost
solution.