BotFramework-WebChat: Cognitive Speech not working in West Europe

Screenshots

image

Version

I use 4.7.1, but it doesn’t work on 4.6.0 too.

"<meta name="botframework-directlinespeech:version" content="4.7.1">
<meta name="botframework-webchat:bundle:variant" content="full-es5">
<meta name="botframework-webchat:bundle:version" content="4.7.1">
<meta name="botframework-webchat:core:version" content="4.7.1">
<meta name="botframework-webchat:ui:version" content="4.7.1">"

Describe the bug

When I click on the microphone this error occurs.

On 19.12.2019 everything worked fine and when I tried on 20.12.2019 WITHOUT changing anything at the code it wouldn’t work.

This is how I implement the Cognitive Speech Service:

<script>
webSpeechPonyfillFactory = window.WebChat.createCognitiveServicesSpeechServicesPonyfillFactory({
			//	credentials: {
						region: 'westeurope',
						subscriptionKey: 'XXXXX'
			//		}
			})
			window.WebChat.renderWebChat({
				directLine: window.WebChat.createDirectLine({
				//	token: token
					secret: 'XXXXXXXX',
					
				}),
				webSpeechPonyfillFactory: webSpeechPonyfillFactory,
				// disable timestamp
				groupTimestamp: false,
					
				//set language
				locale: 'en-US',
					
			}, 
				document.getElementById('webchat'));
			
         
      </script>

Expected behavior

It should recognize my voice and translate it to text.

Additional context

My bot runs on C#, but I tried on a JS-Bot too, same Error. WebSockets are enabled in the BotConfig.

[Bug]

About this issue

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

Most upvoted comments

Although you may not using LUIS in your bot, Direct Line channel do provides a LUIS ID and requires Web Chat to pass it to Cognitive Services. The ID is called “LUIS reference grammar ID”.

Even in your case, you are not using LUIS, Direct Line channel still send us the LUIS ID, so we still pass it to Cognitive Services. And I believe Cognitive Services has some issues handling LUIS ID in West Europe region.

We have contacted Cognitive Services team and they are investigating the issue.

Closing this issue as it is working now. Thanks for the investigation.

@wehnicde, yes, the es5 version will work in all web browsers the same. Outside of the file package size if that is a concern, you should be just fine.

Never mind my comment about implementation. You’re is just fine and acceptable. I thought I saw you doing something slightly different, but I was mistaken.

I did go ahead and create a new CS Speech service a second time (and a new bot for a clean slate tho I also confirmed with an established bot) and was able to repro. I will have an update when we know more.

Thanks @wehnicde for reporting the problem.

Hi, I am getting this same WebSocket issue in locale:en-US and speech region: eastus

Is there any fix for this? We are not able to use speech service because of this.

Web Chat only own the client-side. I believe the service team is working on a fix.

@compulim, created a ticket earlier today in Cognitive Services Speech Uservoice account, here.

@compulim I am not using LUIS for my bot. Or does Cognitve Speech use LUIS by itself?

Reassigning @stevkan for azure reporting only