Search code examples
google-chromespeech-recognitionwebkitspeechrecognition

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.


Solution

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