Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

("Error Domain=kAFAssistantErrorDomain Code=209 \"(null)\"") Still Listening even it has error or forcibly stopped. #13

Closed
Truedison opened this issue Jan 3, 2017 · 16 comments

Comments

@Truedison
Copy link

Truedison commented Jan 3, 2017

This happens on spamming the listening trigger

@Truedison Truedison changed the title Error = kafassistant ("Error Domain=kAFAssistantErrorDomain Code=209 \"(null)\"") Still Listening even it has error or forcibly stopped. Jan 3, 2017
@pbakondy
Copy link
Owner

pbakondy commented Jan 3, 2017

device? os version?
how can you tell the app is still listening?

@Truedison
Copy link
Author

It displays a behaviour same as "not saying anything". Behaviour was After 30 mili/seconds of no activity then it pops an error message. after that happens it all goes okay.

@Truedison
Copy link
Author

@mosca90 I think this is not related to your issue, Just want to ask if you have internet when you are testing this or have you done this

Requirements

XCode 8.0 (requires 10.12+ macOS Sierra or 10.11.5+ OS X El Capitan)
iOS 10
NSMicrophoneUsageDescription permission
NSSpeechRecognitionUsageDescription permission

@ghost
Copy link

ghost commented Feb 21, 2017

@Truedison i'm under wifi with phone on airplane mode..

XCode - iOS latest version

@Truedison
Copy link
Author

@mosca90 How about these 2 ?

NSMicrophoneUsageDescription permission
NSSpeechRecognitionUsageDescription permission

@ghost
Copy link

ghost commented Feb 21, 2017

@Truedison I'm calling exactly like here: #17 (comment)

I got 2 popups window of permission request.

@Truedison
Copy link
Author

@mosca90 Do you have something like this on your config.xml if youre running on ionic

@ghost
Copy link

ghost commented Feb 21, 2017

@Truedison sorry, like what?

@Truedison
Copy link
Author

Truedison commented Feb 21, 2017

@mosca90 I'm sorry, like this.

" <variable name="MICROPHONE_USAGE_DESCRIPTION" value="would like to use this" /> <variable name="SPEECH_RECOGNITION_USAGE_DESCRIPTION" value="would like to use this" />"

@ghost
Copy link

ghost commented Feb 21, 2017

@Truedison no.
Added to config.xml but nothing change.. so sad.

@Truedison
Copy link
Author

@mosca90 There's a right way to add it man. You dont have to add it manually in config.xml You have to uninstall the plugin and add again the plugin with those variables

@ghost
Copy link

ghost commented Feb 22, 2017

cordova plugin add cordova-plugin-speechrecognition --variable MICROPHONE_USAGE_DESCRIPTION="microphone" --variable SPEECH_RECOGNITION_USAGE_DESCRIPTION="microphone" --save

Now in config.xml i have these lines:
<plugin name="cordova-plugin-speechrecognition" spec="~1.1.1"> <variable name="MICROPHONE_USAGE_DESCRIPTION" value="microphone" /> <variable name="SPEECH_RECOGNITION_USAGE_DESCRIPTION" value="microphone" /> </plugin>

Using this code to start recognition: #17 (comment)

iphone 5s with latest update.
Run under wi-fi with plane mode on.
Sim card with no service available in this phone.

When the recognition starts, near the wifi icon appear a search icon too, idk why.
When the icon stops to turn, the error appears: Error Domain=kAFAssistantErrorDomain Code=209

After 3 attempt, there is no icon and the error is Error Domain=kAFAssistantErrorDomain Code=1

Maybe siri has some problem without sim service?
Native recognition works well.

Thx @Truedison.

@Truedison
Copy link
Author

@mosca90 Are you using this in Ionic ? I think they already added this in ionic-native maybe there's a new/better implementation there.

@ghost
Copy link

ghost commented Feb 23, 2017

https://ionicframework.com/docs/v2/native/speechrecognition/

Btw, it would be nice in future to be able to remove the limitation to 10 iOS only, like Android which has various versions supported

@pbakondy
Copy link
Owner

"limitation to 10 iOS only" - Apple supports speech recognition since iOS 10.
See: https://developer.apple.com/reference/speech?language=objc

@shubam-wittyparrot
Copy link

I am using in my iphone 8 and i am getting the same error code 209 can any1 please help me out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants