Error synthesizing speech when including an QR-code image in the QnA maker.
See original GitHub issueHello!
Our team was working on the project that would use the Web Bot implemented for a React application with the speech-to-text and text-to-speech functionality for the Bot connected to a QnA Maker.
I was successful in connecting the features for speech, however noticed a strange bug. When the response that we send contains a QR code in it, the speech synthesis seems to fail entirely. The qr code is embedded as an image in the QnA maker response, not sure if this would be an expected functionality. You can check it out through the following.
Navigate to:
https://wow-kiosk.netlify.app/kiosk
In the bot field you can test the speech functionality by just saying “Hello” and it should synthesize speech correctly.
However, when you ask “Tell me about Week of Welcome”, the following error pops up in the console.
I would gladly appreciate any feedback about this issue. What could be a possible go around on the issue? Should the library be able to handle embedded images?
Best,
Oleg T.
Please view our Technical Support Guide before filing a new issue.
Screenshots
Version
To determine what version of Web Chat you are running, open your browser’s development tools, and paste the following line of code into the console.
[].map.call(document.head.querySelectorAll('meta[name^="botframework-"]'), function (meta) { return meta.outerHTML; }).join('\n')
If you are using Web Chat outside of a browser, please specify your hosting environment. For example, React Native on iOS, Cordova on Android, SharePoint, PowerApps, etc.
Describe the bug
Steps to reproduce
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
Expected behavior
Additional context
[Bug]
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top GitHub Comments
@Zerryth @compulim Thank you guys for helping me figure it out. I can imagine now how that link for the image would fail to be synthesized by the speech service. I will try and find a workaround with the bot logic to prevent the link elements from being sent to the speech service for processing.
Thank you so much! Have a wonderful rest of your week!
@Zerryth for QnA maker, do you know if the
speak
field can be customized when the underlying bot is responding?Specifically, I mean, when the bot reply (schema here), can the QnA maker reply a different value for the
speak
field, while keeping thetext
field containing the QR code?Currently, the bot response is too long/complex for Cognitive Services to synthesis it out, copied the
Activity
object below:Without the
speak
field set, thetext
field (highlighted) will be used for synthesis, which can be too long/complex. That means, we will send a SSML for the following to Cognitive Services, which is probably too long/complex for it to synthesize it.Thus, Cognitive Services returned 400.