I wanted to find a library for that purpose; which I found so made a small repo with create-react-app
to try it.
It's not what I was expecting: this is a speech recognition library as in "speech to written text"
git clone git@github.com/GBouffard/testing-react-speech-recognition
cd testing-react-speech-recognition
npm install
npm start