Apple platforms offer an API (SFSpeechRecognizer) which for some languages supports on-device recognition. Trivial to set up, super easy to use, and pretty reasonable accuracy.
Disclaimer: Working for Apple, not directly on this API but in related subjects.
Disclaimer: Working for Apple, not directly on this API but in related subjects.