Skip to content

Comments

Fixed SpeechDetection 'end' event listener#740

Open
RoccoMangone wants to merge 1 commit intowesbos:masterfrom
RoccoMangone:patch-1
Open

Fixed SpeechDetection 'end' event listener#740
RoccoMangone wants to merge 1 commit intowesbos:masterfrom
RoccoMangone:patch-1

Conversation

@RoccoMangone
Copy link

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.
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.

1 participant