-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
iOS 10 error kAFAssistantErrorDomain - Ionic 2 #88
Comments
Are you testing on a real device or a simulator? |
Ofc on a real device, simulator is not allowed to access the microphone! |
Can you provide a sample Ionic 2 app with just the plugin to reproduce the problem? I've never used Ionic 2 and this problem is not present on regular Cordova apps |
Give me 20min and i will upload a .rar project here if is ok |
sure |
Base code: 🔢 My steps:
To run my project:
It should be all 👍 -> If you have error with sass: |
Thanks for the project, it was very helpful to test on ionic. But sadly I don't have any clue, I have tried a few times and I got the 203 once, and also the 209 if I click Start Speech multiple times without waiting for the result, but most times it works fine. 203 is GRAMMAR_LOAD_STATE_FAILURE, 209 is GRAMMAR_LOADING_START_FAILURE (https://developer.nuance.com/public/Help/DragonMobileSDKReference_iOS/Error-codes.html) |
Hi @jcesarmobile, thx for your answer. I tested my project on an iPhone 5s with latest update (iOS 10.2.1). When the recognition starts, near the wifi icon appear a search icon too, idk why. But I have to wait like 1min since I stopped talking. Now.. How i can handle this? Thx again. |
Yeah, I have to look if it's possible to control the time of the recognition, it's 1 minute as you say. You can set interimResults to true, so it return results as soon as they are recognized instead of waiting for the whole minute to finish, but will continue with the recognition until the minute runs out. Maybe you can call stop as soon as you get the first result. |
Now is working! This is a good workaround for now! Thx you!
|
HI @mosca90 how to solve this problem? i not found your solution? Thank! |
I'm experiencing the same thing, in Ionic v1 app. Error in Error callbackId: SpeechRecognition1097749174 : TypeError: null is not an object (evaluating 'this.observers.length = 0') Callback error
That happens only on IOS devices for me, Android seems to be working just fine. It seems like the plugin enters a faulted state, If I leave it idle for about 2 minutes it gets back to work.... IOS Version: 11.2.6 |
This error means that it failed to recognize the speech. |
Just create a new ionic 2 project and add your plugin.
On iOS 10 give an error:
Error happens, – {type: "error", error: 203}
Mode details:
Error Domain=kAFAssistantErrorDomain Code=203 "Retry" UserInfo={NSLocalizedDescription=Retry, NSUnderlyingError=0x1702441a0 {Error Domain=SiriSpeechErrorDomain Code=1 "(null)"}}
On android works with no problem.
Same error with this plugin: https://github.com/pbakondy/cordova-plugin-speechrecognition
The text was updated successfully, but these errors were encountered: