iOS 10 Speech Recognition in Background?

Does anybody know if SFSpeechAudioBufferRecognitionRequest is supposed to work in background?


I'm sure I've tested it in Beta 1 and it worked fine in background/locked screen. But now in Beta 4 I get kAFAssistantErrorDomain error 1700 at the handler when recognition starts in background.


I couldn't find any documentation about this.


Thanks

Replies

Same issue here. I'm trying to do it in the background but getting same problem. Beta 5.

Nuance and Wit.ai's SDK can work in background. But I've found no way to make Speech framework work like that.


I've filled a radar: www.openradar.me/27814395

Nuance and Wit.ai's SDK can work in background. But I've found no way to make Speech framework work like that.

Bumping this thread as I am running into the same error (kAFAssistantErrorDomain error 1700) with SFSpeechURLRecognitionRequest as well.

Please share if you find a solution

Apple has closed my issue with the following:


We explicitly don't support speech recognition in the background currently.

We consider this issue closed. If you have any questions or concern regarding this issue, please update your report directly (http://bugreport.apple.com).


Thank you for taking the time to notify us of this issue.


Best Regards,

Apple Developer Support

Worldwide Developer Relations

Thanks. Is there a list of these error codes somewhere? I get several different codes sporadically

i am having the same issue in ios 13. I got the following error,


2020-01-21 15:30:41.549170+0530 Pro@Me[2212:613705] [Utility] +[AFAggregator logDictationFailedWithError:] Error Domain=kAFAssistantErrorDomain Code=1700 "(null)"

2020-01-21 15:30:41.553271+0530 Pro@Me[2212:613445] [aurioc] AURemoteIO.cpp:1590:Start: AUIOClient_StartIO failed (561145187)

2020-01-21 15:30:41.553429+0530 Pro@Me[2212:613445] [avae] AVAEInternal.h:109 [AVAudioEngineGraph.mm:1544:Start: (err = PerformCommand(*ioNode, kAUStartIO, NULL, 0)): error 561145187

2020-01-21 15:30:41.556057+0530 Pro@Me[2212:613445] THREAD WARNING: ['SpeechRecognition'] took '42.260986' ms. Plugin should use a background thread.

2020-01-21 15:30:41.556959+0530 Pro@Me[2212:613445] startListening() recognitionTask error: Error Domain=kAFAssistantErrorDomain Code=1700 "(null)"