JamesBrill / react-speech-recognition

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

Pass matched command into callback #76

Closed JamesBrill closed 3 years ago

JamesBrill commented 3 years ago

To enable consumers that provide an array of command phrases for the same command callback, pass in the matched command phrase to the callback. This is passed in through the last argument as the command property.