JamesBrill / react-speech-recognition

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

Uncaught (in promise) TypeError: Cannot read properties of null #201

Open intelworksco opened 8 months ago

intelworksco commented 8 months ago

HI Team,

I am using Azure Speech Service polyfill and i am getting the below error while using startListening

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'reject') at MicAudioSource.js:194:1

Getting the error while calling below function, For starting, await SpeechRecognition.startListening({ continuous: true, language: 'en-US' });

For stopping, await SpeechRecognition.abortListening();

Let me know how we can resolve this issue.

Thank you

yyhaos commented 1 month ago

Hi, same problem here.

Fix it by re-installing the package using: npm install --save react-speech-recognition It is expected that react-speech-recognition dependency added to file package.json.