JamesBrill / react-speech-recognition

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

Better recognition control #2

Closed JamesBrill closed 7 years ago

JamesBrill commented 7 years ago

The goal of this PR is to give the user more control over the Web Speech API. Previously, the recognition object was not aborting speech recognition detection correctly, and was failing on re-renders. The use of a singleton recognition object and improved controls should alleviate this issue.