EddyVerbruggen / nativescript-speech-recognition

:speech_balloon: Speech to text, using the awesome engines readily available on the device.
Other
90 stars 21 forks source link

On Android, speech recognition is marked as finished when partial results are returned #11

Closed gtnunes1956 closed 7 years ago

gtnunes1956 commented 7 years ago

"sendBackResults" does not distinguish whether it is being invoked by "onResults" or by "onPartialResults", and thus always flags "finished: true" within the returned "SpeechRecognitionTranscription" object. A parameter could be added to "sendBackResults", to indicate whether the results being returned are partial or final.