JamesBrill / react-speech-recognition

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

text produced with word repeats in mobile chrome with android devices #18

Closed satishminidukan closed 5 years ago

satishminidukan commented 5 years ago

https://l243n4n1wm.codesandbox.io/ here is example setup, i tried to transcript on start button click, it repeat the words in transcript on mobile chrome browser, working fine on desktop chrome. please let me know if this can be fixed or workaround to get it working correct way. for example, above code on start button click try to say "mobile" it print transcript 2-3 times below, in chrome browser in android devices.

satishminidukan commented 5 years ago

Hi,

Seems continuous: false option setting seems to fix the issue, it stoping words words repeat .

JamesBrill commented 5 years ago

Thanks for raising this - this must have been frustrating! This appears to be a bug in the Android Chrome implementation of the Web Speech API. I've made a note to update the README with your workaround and some suggestions on detecting Android Chrome.

shamanez commented 4 years ago

hi any updates ?

JamesBrill commented 4 years ago

Hi @shamanez yes, I added some logic to work around this behaviour in Android. This should be working in version 2.0.7 onwards.