-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onResult returns result only once in iOS #92
Comments
In which iOS version are you testing? it uses different engines based on the iOS version and might work in a different way |
Hi @jcesarmobile, |
any update on this ? Please help |
I'm having the same issue on an iPhone 4S just upgraded to iOS 9.3.5. Tested with a couple of different code variations, including the sample code provided in the Readme. The iSpeech popup works the first time, however on subsquent popups it fails to set the text. The voice detection works (the microphone level animation oscillates when you speak) just the conversion to text doesn't. Perhaps the sample code needs to be updated with a full demonstration of the various methods/properties/events -- I'm guessing that something needs to clear/reset after a successful conversion in order for another to succeed, i.e. there's something in the plugin looking for an empty/unset value but finds the initial successful data and skips a step for subsequent runs? |
I've come up with a workaround -- assign a new SpeechRecognition() and set recognition.onresult each time. Not sure whether that will chew up memory but I guess you can set the recognition = null after each successful result so the garbage collector takes care of things? Anyway here is my working version of the readme example (note I'm not using the device ready event):
|
Hi,
I have used this plugin in my app, When Speech recognition is started for first time it recognizes the voice. But from second time and so on it returns null or "" in onResult function.
The text was updated successfully, but these errors were encountered: