Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fixed SpeechDetection 'end' event listener#740

Merged
Asjas merged 1 commit into
wesbos:masterwesbos/JavaScript30:masterfrom
RoccoMangone:patch-1RoccoMangone/JavaScript30-1:patch-1Copy head branch name to clipboard
Jun 1, 2026
Merged

Fixed SpeechDetection 'end' event listener#740
Asjas merged 1 commit into
wesbos:masterwesbos/JavaScript30:masterfrom
RoccoMangone:patch-1RoccoMangone/JavaScript30-1:patch-1Copy head branch name to clipboard

Conversation

@RoccoMangone

Copy link
Copy Markdown
Contributor

Passing only recognition.start in the event listener no longer works in Chrome due to an API update in 2025. This error is thrown:
Uncaught TypeError: Failed to execute 'start' on 'SpeechRecognition': parameter 1 is not of type 'MediaStreamTrack'.

Changing it to an arrow function fixes the issue.

Passing only recognition.start in the event listener no longer works in Chrome. Changing it to an arrow function fixes the issue.
@Asjas Asjas merged commit 5050afa into wesbos:master Jun 1, 2026
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.