1

I am building an application using the Web API SpeechRecognition, but onspeechstart and onspeechend listener are not working. https://developer.mozilla.org/ja/docs/Web/API/SpeechRecognition

The version of Safari is 15.0.

The relevant code is as follows. The language is typescript (javascript).

const SpeechRecognitionrecognition = (window as any).webkitSpeechRecognition;
speechRecognizer = new SpeechRecognitionrecognition();
speechRecognizer.onspeechstart = () => {
  // Process when the user starts speaking
};
speechRecognizer.onspeechend = () => {
  // Processing when speech is finished
};

Are there any settings that are necessary to use these event listeners in Safari? If you know anything about it, I would appreciate it if you could let me know.

  • Are you asking for best practices on using the speech recognition api or is your current code not working? – Jespertheend Nov 12 '21 at 21:43
  • I'm sorry for the lack of information. I want to know how to use onspeechstart and onspeechend listener on Safari. Onspeechstart and onspeechend listener are not working in my code on Safari. – watanabe_1113 Nov 13 '21 at 23:24

0 Answers0