iOS15: SFSpeechRecognizer error kLSRErrorDomain code 201

Hi,

I use device-local speech recognition for speech input. Now some iOS 15 upgraded devices return the new error domain / code

kLSRErrorDomain, code 201

(previously the errors were mostly in kAFAssistantErrorDomain). Has anybody an idea what it means and how to fix it?

Thanks!

Replies

This error happens when General > Keyboard > Enable Dictation is switched off with defaultTaskHint property of SFSpeechRecognizer instance is .dictation. You can get rid of this error by changing this property to .unspecified.

  • I have tested this on my device, it does not seem to solve the problem. At first it seemed to solve the problem but it sometimes works, sometimes not. I think the problem is at OS level. More details can be found in this thread: https://developer.apple.com/forums/thread/690736

Add a Comment

Thanks a lot!