You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per documentation you should set interimResults to false to only retrieve the final result.
interimResults
boolean (default: true)
SpeechRecognition can provide realtime results as it's trying to figure out the best match for the input. Set to false if you only want the final result.
Result is getting overwrite while speaking after 1-2 seconds
const { listen, listening, stop } = useSpeechRecognition({
onResult: (result: any) => {
setValue(
'diagnosis',
diagnosisData?.diagnosis ? diagnosisData?.diagnosis + result : result
)
},
})
useEffect(() => {
return () => {
stop()
}
}, [])
Anyone can contribute?
The text was updated successfully, but these errors were encountered: