Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Gov WebChat: Cognitive Speech API points to commercial #2969

Closed
AngryVirginian opened this issue Mar 3, 2020 · 5 comments · Fixed by #3040
Closed

Azure Gov WebChat: Cognitive Speech API points to commercial #2969

AngryVirginian opened this issue Mar 3, 2020 · 5 comments · Fixed by #3040
Assignees
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

Comments

@AngryVirginian
Copy link

AngryVirginian commented Mar 3, 2020

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.

@AngryVirginian AngryVirginian added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. Pending customer-reported Required for internal Azure reporting. Do not delete. labels Mar 3, 2020
@corinagum corinagum self-assigned this Mar 3, 2020
@corinagum
Copy link
Contributor

corinagum commented Mar 3, 2020

@AngryVirginian, could you share your directLineConnection object? Does it have domain assigned?

I can see from your other bug that you have it assigned.

@corinagum corinagum removed the Pending label Mar 3, 2020
@corinagum
Copy link
Contributor

@p-nagpal is there a rep from the service side who could help with Azure Gov issues?

@p-nagpal
Copy link
Contributor

p-nagpal commented Mar 4, 2020

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

@corinagum corinagum added the customer-replied-to Required for internal reporting. Do not delete. label Mar 4, 2020
@p-nagpal
Copy link
Contributor

p-nagpal commented Mar 5, 2020

@compulim , could you help add the FromHost solution to WebChat (see the related speech SDK issue)

@p-nagpal p-nagpal assigned compulim and unassigned compulim, corinagum and p-nagpal Mar 5, 2020
@cwhitten cwhitten added the R9 label Mar 9, 2020
@cwhitten cwhitten added the p0 Must Fix. Release-blocker label Mar 9, 2020
@compulim
Copy link
Contributor

Start working on it now.

Will implement the fromHost solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants