In ios13 beta apple support on device speech recognition.
In documentation I observed to set "requiresOnDeviceRecognition" property as true, then audio will be converted as text in device only.
But whenever I set this property as "Yes" , I always getting this error :
Error Domain=kAFAssistantErrorDomain Code=1103 "No models installed yet" UserInfo={NSLocalizedFailureReason=No models installed yet} NSLocalizedFailureReason = "No models installed yet";
Please ensure that you're passing the correct locale in the SFSpeechRecognizer
.
For example, I live in India, my current device language is English(India), so I've initialized the SFSpeechRecognizer
in the following way:
private let speechRecognizer = SFSpeechRecognizer(locale: Locale(identifier: "en_IN"))!
This should work for you!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With