Speech Synthesizer behavior change in V4
See original GitHub issueVersion
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:
- Go to any voice-enabled samples.
- Click on mic
- Speak something to the bot and wait for the bot to speak back.
- Execute the code segment
speechServicesPonyfill.speechSynthesis.queue.stop(); speechServicesPonyfill.speechSynthesis.cancel();
The speech will stop now. - Now type something to the bot. The reply will be again spoken by the bot.
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]
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
NSSpeechSynthesizer | Apple Developer Documentation
Indicates whether the receiver is currently generating synthesized speech. ... Begins speaking synthesized text through the system's default sound output device.
Read more >TI-99/4A Speech Synthesizer First Look, Background, and ...
Ep 36 : The Texas Instruments Speech Synthesizer - an overview of the technology, demonstration of game and educational software, ...
Read more >Speech Synthesis Markup Language Specification - W3C
The "emphasis" element requests that the contained text be spoken with emphasis (also referred to as prominence or stress). The synthesizer ...
Read more >Artificial speech synthesizer control by brain-computer interface
include devices to replace glottal pulse activity for laryngectomy patients and text-to-speech synthesizers incorporated into augmentative and alternative ...
Read more >Speech Synthesis in the Translation Revision Process - MDPI
For viewing behaviour, a subset of eye-tracking data shows that participants focused more on the target text (TT) than the source regardless of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alokraj68, for stop speaking, can you implement point 3 as in this comment?
@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.