-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speech Synthesizer behavior change in V4 #2568
Comments
@corinagum, Can you please follow these steps and help me out resolve this? |
|
Closing this issue for organizational purposes. For those wanting to add anything, please take your discussion to #2211. Thank you! |
@compulim, I am looking for the same equivalent since this behavior is not there now with the V4 speech synthesis. Also, Cancelling all utterance does not disable the speech until the user press the mic button. |
@alokraj68, for stop speaking, can you implement point 3 as in this comment? |
@compulim, @corinagum, I did implement the same. But once we send a Proactive message, It is also spoken by the bot which we do not want. Also, we tried to run it via piggybacking from webchat like this:
The stop speech does not execute as expected since the stop speech is sent before the speech file from server is received by cognitive services. The only crude method we found now is as follows
Please suggest an alternative. |
@alokraj68 are you trying to stop all speech synthesis? If yes, this sample will help, https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/03.speech/d.cognitive-speech-services-speech-recognition-only. This sample build a partial adapter that enable speech recognition but disable speech synthesis, which will aid in your case if you are stopping all speech synthesis. |
Version
4.6 vis CDN
Describe the bug
In V3, we had an option to stop the speech from code and after that, the speech synthesizes won't work until the user again uses speech recognizer.
In V4, this behavior has changed. The bot speaks out every message even after stoping it from code.
To Reproduce
Steps to reproduce the behavior:
speechServicesPonyfill.speechSynthesis.queue.stop(); speechServicesPonyfill.speechSynthesis.cancel();
The speech will stop now.
Expected behavior
The bot should not speak once this code segment is executed. This was the behavior in V3.
Additional context
This is an upgrade issue and the context is that if we minimize the bot and we trigger any message from the user to the bot via piggybacking, the reply will be spoken by the bot even when it is minimized.
[Bug]
The text was updated successfully, but these errors were encountered: