SFSpeechRecognizer offline support

We are implementing a speech to text feature in one of our apps using SFSpeechRecognizer.


As per the documentation, latest iOS devices have support for OFFLINE speech to text.

The most important thing for us is to make the whole speech to text happen without any server interaction. We tested on latest devices in airplane mode and it works fine.


But we have two issues.


1. We monitored on latest devices and found that when doing speech to text it makes server calls, is there any way to find out what it sends to the server.

2. When the internet is available is there any way to set the SFSpeechRecognizer to still use the offline capability only.

Replies

I have same problem too. Sometimes offline spech recognitino works but sometime doesn't.

And when SFSpeechRecognizer doesn't work the keyboard speech recognition works well!


I used to think that SFSpeechRecognizer has same API underhood as keyboard recognition but the real behaviour is unpredictable.

" When the internet is available is there any way to set the SFSpeechRecognizer to still use the offline capability only."


In ios13 we have a option for ondevice speech recognition.
https://developer.apple.com/documentation/speech/sfspeechrecognitionrequest/3152603-requiresondevicerecognition?language=objc

In documentation , on device speech recognition supports for specifc languages only(10+).But in ios13 beta versions whenever use this on device recognition, always getting error only.So we need to wait for next beta release.