You want to look at Microsoft's (poorly documented) pages at
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ee125189(v=vs.85)
Do notice that many interfaces won't be present until you install Desktop Experience and the relevant SDK + runtime.
SAPI takes the SAPI SDK 5.1 (Microsoft never cared to release 5.4). I haven't gotten (free dictation) speech recognition to work with the Speech Server 11.x but it does work with SAPI - both speech recogntion and text to speech (TTS).
The next problem, of course, is multilingual support. AND - because only .wav and .wma are accepted by the speech recognizer, you'll want to find/build a component which enables conversion to/from other various formats. 80% of all searches are done from mobile devices now...so it's not even a (sane) option to leave out...