I am trying to test out the on-device speech recognition support in iOS 13. According to the presentation at WWDC, it should be available on all devices with an A9 or newer processor. I'm using one of the supported language variants (en_US). So far it has failed on an iPhone 8, iPad Mini 5, iPad Pro 10.5" and an iPad Pro 11" - all of which are running iOS 13.2 and have the requisite language loaded.
Here's a snippet of my code
if #available(iOS 13, *) {
if recognizer.supportsOnDeviceRecognition {
recognitionRequest.requiresOnDeviceRecognition = true
} else {
print("Device does not support offline speech recognition.")
return
}
}
In every case the call to supportsOnDeviceRecognition returns false. At first I assumed that it was a know bug (see the release notes) but I've tried waiting a few seconds and running it again but it still fails.
Any suggestions? Has anyone else had a similar issue?