JamesBrill / react-speech-recognition

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

SpeechRecognition still continue to access the microphone even after stopListening #148

Open HollowCrusader opened 1 year ago

HollowCrusader commented 1 year ago
    const SpeechlySpeechRecognition = createSpeechlySpeechRecognition(appId)

    SpeechRecognition.applyPolyfill(SpeechlySpeechRecognition)

    const startListening = () =>  SpeechRecognition.startListening({continuous:true})
    const stopListening = ()=>  SpeechRecognition.stopListening()

This is the code snippet I used to control the speech recognition and it worked when I start listening and it does stop listening, However, it still show red dot on Chrome browser tab indicating that it is still using microphone.

Is there a way to fix it or is it considered to be a bug?