Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"OnDeviceRecognition" in Speech kit not working

Tags:

ios13

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";

like image 815
ranjith Kumar Avatar asked Oct 15 '22 12:10

ranjith Kumar


1 Answers

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!

like image 170
AnupamChugh Avatar answered Oct 21 '22 06:10

AnupamChugh