3

The onend callback is being called immediately after start() is called on SpeechRecognition, causing the voice recognition to never work:

timestamp = Date.now()
speech = new webkitSpeechRecognition()
speech.onend = () => console.log('ended after', Date.now() - timestamp, 'ms')
speech.start() // immediately logs "ended"

Log results

This has been tested with Chromium: Version 102.0.5005.115 (Build officiel) snap (64 bits) on Ubuntu 20.04.

Am I missing something?

Sharcoux
  • 5,546
  • 7
  • 45
  • 78
  • lol i'm again experiencing this issue, again stumbled upon this question and again upvoted but it tells me i already did half a year ago. – anthnyprschka Feb 28 '23 at 20:32

0 Answers0