A draft of SpeechManager.swift, that recognize the spoken text using Siri.
It use the Apple Speech framework (https://developer.apple.com/documentation/speech):
Read MorePerform speech recognition on live or prerecorded audio, receive transcriptions, alternative interpretations, and confidence levels of the results.