microsoft / BotFramework-Emulator

A desktop application that allows users to locally test and debug chat bots built with the Bot Framework SDK.
https://aka.ms/botemulator
MIT License
1.81k stars 754 forks source link

Enable Speech - Render error in Emulator #2139

Open richross opened 4 years ago

richross commented 4 years ago

/clients-and-channels/tutorials/enable-speech/4-integrate-speech-channel/

I'm trying to enable speech in Virtual Agent. I did the following steps. Create the VA Ran through the install of the VA tools and projects Created a new bot VA project in VS 2019 Deployed the Azure components via the PS script Got the bot working in the emulator.

Tutorial - Enable Speech Followed the Enable Speech path under the Next Steps Created the Speech Service Confirmed all of the configuration settings for the app and services including the streaming endpoint and websockets. Ran the bot in the Emulator. As soon as the conversation is started, the adaptive card is displayed, I am asked for my name, and then there is a 'non-bot' message, possibly from the emulator stating "Render error. Please check the console or contact the bot developer." all in red text. I included an image of the emulator. The emulator is mostly unresponsive at this point and needs to be shut down. I can enter text but cannot submit the messages.

Thanks! image

ToddVan commented 4 years ago

I can confirm this issue. Same steps, same behavior.

ryanisgrig commented 4 years ago

Hi @richross, I ran through the same steps and am unable to reproduce on my end (Emulator v4.8.1-126122). Is this against a bot published on Azure or running locally? Do the console/App Insights logs have anything useful?

image

richross commented 4 years ago

Hi Ryan - yes running 4.8.1 here as well for the emulator.
I can get the virtual agent to run. Were you able to get the Enable Speech tutorial running? That is where I get the issue. This happens with a bot running locally and in Azure.

ryanisgrig commented 4 years ago

Yes I ran the Enable Speech tutorial successfully. Can you test against the Windows Voice Assistant Client and share the results? It will help to validate if the same issue occurs on another Direct Line Speech client and if it related to the bot. If there is an issue there it may provide better output to debug.

richross commented 4 years ago

Yes, this works in the client app.

ryanisgrig commented 4 years ago

Got it, thanks for checking! In that case this seems like a bug with BF Emulator, I am transferring to their repository.

tonyanziano commented 4 years ago

Hi @richross ,

Can you reproduce this issue and open the Emulator Dev Tools window so that we can see the error in the console?

Click the following menu item to open the Dev tools:

image

Then click the "Console" tab, and there should be a red error message in there somewhere.

image

You can just paste the entire output here. Also, if the error message has a little arrow or caret next to it, please click on it to expand it and show the full stack trace.