Is it possible to enforce TTS/STT to be performed onDevice, even when the device is online?

Hello,

I am looking for information on TTS and STT. I am aware that there is possibility to implement both offline and online. I am interested in knowing if it is possible to enable ondevice TTS and STT for third party app, even when the device is online. **Our use case is: when the app is still online, we wish to do TTS and STT on device and not on Apple server(privacy concerns). ** Please let me know if it is possible at all or point me in the right direction. I really appreciate and look forward to your reply.

AVSpeechSynthesizer doesn't need to go off-device to generate speech. SFSpeechRecognitionRequest (requiresOnDeviceRecognition) supports on-device recognition, when the device reports it as available via SFSpeechRecognizer (supportsOnDeviceRecognition).

Note that SFSpeechRecognizer may sometimes need an Internet connection, because some of its static data may change from time to time and it needs to update its local copy. However, requiresOnDeviceRecognition is sufficient to keep recognition tasks strictly on-device.

Is it possible to enforce TTS/STT to be performed onDevice, even when the device is online?
 
 
Q