Skip to content

Speech: Stop microphone button should re-enable the button after a few seconds #2240

@compulim

Description

@compulim

Version

master

Describe the bug

After microphone button is clicked to stop the recording, the button continue to be disabled.

This is because in Dictation.js, we have a check when we should re-enable the button. The button should be allowed to re-enable when STOPPING.

To Reproduce

Steps to reproduce the behavior:

  1. Navigate to https://microsoft.github.io/BotFramework-WebChat/06.a.cognitive-services-bing-speech-js/
  2. Click on micrephone button
  3. Speak a very long text
  4. While you are speaking, notice the microphone button turned red
  5. Click the microphone button while it is red, should turn off recording

Expected behavior

Within a few seconds, the microphone button should re-enable and ready to start recording again.

Actual, it did not re-enable and become permanently disabled.

Additional context

This is affecting all types of Web Speech engine, including browser, Bing Speech, and Cognitive Services.

[Bug]

Metadata

Metadata

Assignees

Labels

area-speechbugIndicates an unexpected problem or an unintended behavior.front-burner

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions