Skip to content
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

Fix error when spamming browser speech recognition button #881

Merged
merged 1 commit into from
Mar 7, 2018

Conversation

compulim
Copy link
Contributor

@compulim compulim commented Mar 6, 2018

When ending a speech recognition session, we need to wait until webkitSpeechRecognition.onend event. If we call webkitSpeechRecognition.start() before the onend event, we will receive "already started" error.

Credit @shahidkhuram for the original PR #657. We prefer observing onend event, than waiting for an arbitrary 500ms.

Copy link
Contributor

@eanders-ms eanders-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Promisy goodness!

@compulim compulim merged commit 6f93b06 into microsoft:master Mar 7, 2018
@compulim compulim deleted the fix-listen-debounce branch March 7, 2018 18:48
@compulim compulim added this to the 0.12.0 milestone Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants