我正在尝试使用 Cordova 在 iOS 应用程序中实现语音识别器。我正在使用 iOS 13.1。当应用程序在前面时它正在工作。但是当应用程序移到后台时不起作用。
我收到以下错误:
2020-01-21 15:30:41.549170+0530 Pro@Me[2212:613705] [Utility] +[AFAggregator logDictationFailedWithError:] 错误域=kAFAssistantErrorDomain Code=1700 "(null)" 2020-01-21 15:30: 41.553271+0530 Pro@Me[2212:613445] [aurioc] AURemoteIO.cpp:1590:Start: AUIOClient_StartIO 失败 (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)): 错误 561145187 2020-01-21 15:30:41.556057+0530 Pro@Me[2212: 613445] 线程警告:['SpeechRecognition'] 花费了 '42.260986' 毫秒。插件应该使用后台线程。2020-01-21 15:30:41.556959+0530 Pro@Me[2212:613445] startListening() 识别任务错误:错误域=kAFAssistantErrorDomain Code=1700“(空)”
提出一些解决方案。