Azure Gov WebChat: Cognitive Speech API points to commercial #2969
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-replied-to
Required for internal reporting. Do not delete.
customer-reported
Required for internal Azure reporting. Do not delete.
p0
Must Fix. Release-blocker
Screenshots
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
let webSpeechPonyfillFactory = await window.WebChat.createCognitiveServicesSpeechServicesPonyfillFactory({ region: 'virginia', authorizationToken: [token] });
window.WebChat.renderWebChat({ directLine: directLineConnection, webSpeechPonyfillFactory, styleOptions }, document.getElementById('webchat')); document.querySelector('#webchat > *').focus();
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.
The text was updated successfully, but these errors were encountered: