Dynamic Online/Offline Speech Recognition with SFSpeechRecognizer

185 Views Asked by At

I am using SFSpeechRecognizer and SFSpeechAudioBufferRecognitionRequest as documented by Apple in the Recognizing Speech in Live Audio example project.

It works fine online.

It works fine offline (on supported devices) when I set SFSpeechAudioBufferRecognitionRequest#requiresOnDeviceRecognition to true.

Q: Is there a way to configure it to use the online version if online and fall back to on-device recognition if offline?

0

There are 0 best solutions below