web-speech-cognitive-services icon indicating copy to clipboard operation
web-speech-cognitive-services copied to clipboard

Speech-to-Text: Return {} when navigator.mediaDevices is falsy/undefined

Open compulim opened this issue 4 years ago • 0 comments

Today, on initialization for TTS, we will check if navigator.mediaDevices is falsy/undefined. If it is, we will return a {} and print warnings.

We should do the same for STT.

navigator.mediaDevices is falsy/undefined when:

  • Running on IE11, or
  • On an insecure page and it is not localhost

compulim avatar Apr 03 '20 16:04 compulim