compulim / web-speech-cognitive-services

Polyfill Web Speech API with Cognitive Services Bing Speech for both speech-to-text and text-to-speech service.
https://compulim.github.io/web-speech-cognitive-services
MIT License
62 stars 18 forks source link

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

Open compulim opened 4 years ago

compulim commented 4 years ago

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: