Skip to content

Speech Synthesizer behavior change in V4 #2568

@alokraj68

Description

@alokraj68

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:

  1. Go to any voice-enabled samples.
  2. Click on mic
  3. Speak something to the bot and wait for the bot to speak back.
  4. Execute the code segment
    speechServicesPonyfill.speechSynthesis.queue.stop(); speechServicesPonyfill.speechSynthesis.cancel();
    The speech will stop now.
  5. 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]

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.customer-replied-toRequired for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.questionFurther information is requested. Stack Overflow candidate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions