vueuse
vueuse copied to clipboard
Add confidence to useSpeechRecognition
Clear and concise description of the problem
Speech recognition API chrome mobile seems to have a problem with isFinal
and the transcript result might get duplicated as result.
Suggested solution
add confidence
parameter to useSpeechRecognition
and filter results (each word) based on it.
people can add set confidence
to 0
in order to prevent this issue.
Alternative
setting continuous: false
should also fix the problem but the UX would not be the same.
Additional context
https://stackoverflow.com/a/43458449
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
I can open a PR if you're up to this change.
@Javid-Izadfar Contributions are welcome, but a more proper params name should be considered :)