Hi
I have a couple questions:
1. I have this code on macOS 10.15
...
var recognizer = SFSpeechRecognizer(locale: Locale(identifier: "en-US"))!
...
...
if !self.recognizer.isAvailable
{
NSLog("RECOGNIZER NOT AVAILABLE")
return
}
The thing is recognizer is NOT availabe. No matter what I do, it's always not available. Am I missing something? What should I do to make it work?
2. I downloaded one example of SFSpeechRecognizer on iOS. I know that in WWDC19, it was said that now ondevice recognition is supported. I put a break point here
if #available(iOS 13, *) {
recognitionRequest.requiresOnDeviceRecognition = true
}
and recognitionRequest.requiresOnDeviceRecognition = true is executed.
However, when I say something, the sample application not responding. It's not doing anything. It does something if I set that requiresOnDeviceRecognition flag to false and turn on internet.
why is it not working? Am I doing something wrong?
If someone can guide me, please help.
Many thanks in advance