Voice assistant

This example might be what you are trying to build

HOW TO: Program the native SpeechRecognizer for Continuous Dictation and to do things . Adapt it to do what you want it to do.