Closed Amintasn closed 5 years ago
Hey @Amintasn, thanks for reporting this. Do you have any repro steps for the text-to-speech issue? In case this isn't repro'd on MockBot, are you able to share your published bot to test this out on?
As for the special characters, this strikes me as an encoding issue. As a quick test, could you try setting your charset
to utf-8 and see if this problem persists? Setting charset
on the client side is a deprecated workaround but if it does repro at least we will know the cause. :)
Hey @corinagum, thanks for the quick reply. While speaking to the bot it sometimes replies by voice, sometimes stays quiet or in some situations starts speaking and then stops in the middle of the answer. You can try it out at https://bit.ly/2RXMWdw Try saying: . Hi . What can you do for me? . What's a chat bot? BTW, I'm using https://cdn.botframework.com/botframework-webchat/latest/webchat.js On the bright side, spot on the encoding issue! Working now. :)
Thx
@Amintasn, glad the temporary workaround works for you. Please keep an eye on #1071 for the fix. :)
Let me get back to you about text-to-speech after I investigate.
@corinagum Great. Thanks a lot for the support. :)
@Amintasn, Unfortunately I'm not able to repro this bug. I tried taking a look at your bot, but it looks like your bot is offline and I'm unable to connect. I also tried this out a few times on Mock Bot, and never came to an problem where the bot stopped speaking mid-utterance.
Do you happen to have any console errors when you run into this issue?
I spoke with @compulim about your problem and he asked me to give you this link to test out your Speech Services on his cognitive services app. Could you try out the text-to-speech synthesis and see if you are able to repro the voice cutting out?
Please let us know any errors or information you can gather if this repros. :)
@corinagum Hi Corina, thanks for your support. I guess you probably didn't notice the bot windows given it was full maximized. Now I've placed in a visible screen position. :) Please try again at https://bit.ly/2RXMWdw when you can. I've tried the cognitive service app and it worked well with my key. While running the app on the browser I see the following console message. webchat.js:67 Web Chat: Cognitive Services Speech Services support is currently in preview. If you encounter any problems, please file us an issue at https://github.com/Microsoft/BotFramework-WebChat/issues/. In summary: . The cognitive service is working fine on your app. . In my application, the bot replies correctly by text . It works fine on voice-to-text but fails to do text-to-voice properly.
Thanks!
@Amintasn - I'm helping @corinagum get to the root of this problem while she focuses on our 4.3 release going into code freeze soon.
To rule out a browser issue, are you able to try this in a different browser? Firefox, Edge or Brave would be good to try out. Also check to be sure you have all add-blockers turned off since they seem to interfere.
If you still see the problem, I'd like to get you a dev build of webchat so we can zero in on this a bit more efficiently.
@justinwilaby - Thanks for your help. I've actually found the root cause of the issue after reflecting on your points. Yes, it fails in some browsers but it partially works on Chrome and Edge which are the most important platform for us. Now the main cause of the text-to-speech speaking failure is that the bot at https://bit.ly/2RXMWdw asks the user if he/she has additional questions after the main question has been answered. So when the "additional questions" type message gets into the channel it interrupts the reading task to focus on the new task. A workaround for now is to stop using "additional questions" type messages. On the other hand it would be great if the webchat.js could queue messages to read in queued fashion. For example, Chrome in-browser text-to-speech service manages it that way. I've posted the same bot app at https://bit.ly/2CYnIYf using Chrome and the latest botchat.js. CDN. Please try the following questions in both bot instances to see how it's addressed differently by them:
@Amintasn - Good call with queuing messages for text-to-speech. We'll look into that. I'm glad you found a workaround and thanks again for bringing this issue to our attention.
@justinwilaby Thanks!
Opening a new issue for the queuing text-to-speech discussion. :)
@corinagum You rock Corina! :) Thanks
We are facing some issue in browsers other than chrome speak icon is not displaying in other browsers
` <!DOCTYPE html>
`'How to' questions such as above are better suited for Stack Overflow. Please feel free to post other questions you have about developing your own features over there so the community at large may help out. If you need help with a Web Chat implementation, you can post a question to the Web Chat tag. Thank you!
Using Webchat v4 with Botframework v3. In most of the case the bot stops speaking in the middle of a phrase. Speech-to-Text works fine though. Also getting special characters in the bot reply like 'Good afternoon! I’m Aila, a Microsoft Virtual Conversational AI Agent. How can I help you today?' Thoughts?