SpeechRecognizer in background: Error Domain = kAFAssistantErrorDomain Code = 1700 "(null)"

Hello,


My app is Bluetooth supportive and I want to recognize the speech in background mode.


However, it is working only in the foreground.

(Exception: if its execution was originally started on UI thread then it works even in the background)


But without it, after my app goes to the background mode, I am getting an error message like:

Error Domain = kAFAssistantErrorDomain Code = 1700 "(null)"


Is there anything I have missed or is it the limitation that iOS doesn't support SpeechRecognizer under background mode?

Replies

Hello, I have the same problem. Have you solved it? If so, could you tell me the solution? My email address is 1598360686@qq.com

I am also have the same problem. speech recognition not working in background. 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)"