JamesBrill / react-speech-recognition

💬Speech recognition for your React app
https://webspeechrecognition.com/
MIT License
637 stars 116 forks source link

Add error state #189

Closed patrikniebur closed 5 months ago

patrikniebur commented 9 months ago

I would find it useful to have access to an error state. Not sure what others experience is like but currently the native SpeechRecognition API is functional only in chrome. Edge, Brave and Firefox (after enabling the flag) all throw different errors. In this case both browserSupportsSpeechRecognition and isMicrophoneAvailable are true but nothing is actually recognised and currently there is no way to access or even recognise that some error has been emitted.

I can add examples and another PR for typings after some feedback on this PR.

theisof commented 9 months ago

Thanks, I was looking for this. The project looks a bit stale unfortunately so not sure it gets any further. For the record, speech recognition works in Edge for Windows but not on macOS.

patrikniebur commented 9 months ago

Thanks, I was looking for this. The project looks a bit stale unfortunately so not sure it gets any further. For the record, speech recognition works in Edge for Windows but not on macOS.

Thanks! That's good to know.

patrikniebur commented 5 months ago

🤷 seems to be ignored