I might wish to develop an app which runs steady speech recognition even after going into the background. I’m constructing an iOS app that makes use of steady speech recognition. It really works wonderful when the app is within the foreground, however I want it to maintain recognizing speech when the app goes into the background. On Android, I’ve achieved this utilizing a foreground service. Nevertheless, I’m struggling to discover a approach to implement this performance on iOS.
I do know I can accomplish this utilizing audio background mode after which course of the audio however I’m not positive if this workaround would get accepted into App Retailer due to the processing limitations whereas within the background.
Downside:
When the app goes into the background (e.g., consumer locks the display screen or switches to a different app), the SFSpeechRecognizer
stops, and the app now not captures speech. I would like it to work constantly within the background, much like how Siri or the Superior Voice Mode within the ChatGPT iOS app does.
Query:
How can I preserve speech recognition energetic whereas the app is within the background or is it even attainable?
Thanks, Marek