SFSpeechRecognizer not working in background
Originator: | diego | ||
Number: | rdar://27814395 | Date Originated: | 08/11/2016 |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | iOS 10 Beta 5 |
Classification: | Reproducible: |
Summary: SFSpeechRecognizer cannot work in background. Based on Apple's SpeakToMe sample (https://developer.apple.com/library/prerelease/content/samplecode/SpeakToMe/Introduction/Intro.html) I've enabled audio in background modes, but I get the following error inside the resultHandler enclosure from method speechRecognizer.recognitionTaskWithRequest: Error Domain=kAFAssistantErrorDomain Code=1700 "(null)" It works fine in foreground. There's no documentation explaining what error 1700 is. Steps to Reproduce: -Download https://developer.apple.com/library/prerelease/content/samplecode/SpeakToMe/Introduction/Intro.html -Enable background mode -Run startRecording() in background -Expect for error in "recognitionTask = speechRecognizer.recognitionTaskWithRequest(recognitionRequest, resultHandler: { (result, error)" Expected Results: The result object Actual Results: The error: Error Domain=kAFAssistantErrorDomain Code=1700 "(null)"
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!