BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Directline speech issue

Open mohmed-elkhodry opened this issue 3 years ago • 5 comments

Screenshots

image

Version

"botframework-webchat": "^4.15.2", "microsoft-cognitiveservices-speech-sdk": "^1.22.0",

Describe the bug

When I use Mic and said nothing the mic stop but getting the error and the bot stop

Steps to reproduce

  1. Go to https://mohap-qc-webchat.azurewebsites.net/main.html
  2. say Covid-19
  3. say Covid 19 vaccine
  4. when mic Is open say nothing

Expected behavior

Mic should stop normally

mohmed-elkhodry avatar Aug 04 '22 18:08 mohmed-elkhodry

@mohmed-elkhodry - I was able to repro the issue using the link you provided. I will attempt a repro using my own setup to see if the result is the same. I also noted this only occurs if the button isn't pressed on following the 2nd prompt. If the mic button is pressed prior to the end of the 2nd dialog ("Covid 19 vaccine" option), then the issue doesn't present itself (in my tests).

Was your Web Chat implementation updated recently that coincided with the error message? Was Web Chat working previously and the error only started showing recently? Or is this a new Web Chat project and you are encountering this when attempting to run? It looks like English isn't the only available language. Does this occur when other languages are used?

If you downgrade Web Chat to 4.15.x or 4.14.x (or others), does the issue go away?

It would help immensely if I were able to see the Web Chat code. Are you able to share that by either posting here or sending via an email to my profile's email address? Or, if not, a basic repro that demonstrates the same issue?

I don't know if this is related or not, but I am seeing this reported in the dev console, as well.

image

stevkan avatar Aug 05 '22 18:08 stevkan

@stevkan First of all thank you for your replay much appreciated, Yes i just updated my web chat from version 4.5.2 to 4.15.2 (the latest version) and changes from cognitive service to directline speech service Yes, it occurs with another languages. No this error is not totaly related to this issue I will try to downgrade the web chat ant inform the result and I will contact company to have permission to share the code with you again thank you for your help

mohmed-elkhodry avatar Aug 05 '22 18:08 mohmed-elkhodry

@stevkan I have shared the code with you via Email Kindly check it

mohmed-elkhodry avatar Aug 07 '22 15:08 mohmed-elkhodry

@mohmed-elkhodry - I received your email and was able to get a copy of your code. I will take a look at it and let you know what I find/think.

stevkan avatar Aug 08 '22 18:08 stevkan

@mohmed-elkhodry - As I don't have access to your bot, can you check to see if your bot is doing something similar to what the OP posted as a cause to their related issue, https://github.com/microsoft/BotFramework-WebChat/issues/4042#issuecomment-909231433?

It's light on details, but my understanding of his comment is, if the user didn't respond, his bot was prompting the user for more input. This seems to have occurred while the microphone was already primed and listening. Is your bot perhaps sending a retry prompt or perhaps sends a default activity when no input is given? This may be a causing a conflict, as the OP suggested in his post.

stevkan avatar Aug 08 '22 21:08 stevkan

Closing due to inactivity.

stevkan avatar Aug 15 '22 16:08 stevkan