Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect if another browser tab is using speechRecognition

Is it possible to tell if another Chrome tab is using webkitSpeechRecognition?

If you try to use webkitSpeechRecognition while another tab is using it, it will throw an error "aborted" without any message. I want to be able to know if webkitSpeechRecognition is open in another tab, and if so, throw a better error that could notify the user.

like image 342
Don P Avatar asked Nov 08 '22 12:11

Don P


1 Answers

Unless your customer is on the same website(you could check by logging the ip/browserprint in database and requesting by json) you cannot do that.

Cross domain protection is in effect, and that lets you know zilch about what happens in other tabs or frames.

like image 54
Tschallacka Avatar answered Nov 15 '22 07:11

Tschallacka