So I have the text to speech part down with this, for example:
from win32com.client import constants
import win32com.client
import pythoncom
speaker = win32com.client.Dispatch("SAPI.SpVoice")
speaker.Speak("message")
But what I don't know how to do is use the above system for speech recognition (if this even has speech recognition). More Specifically, a verbal alternate to the text system
variable = string(input("Question")).
I need to use this to make a system that will parse my speech and then use present keywords in order to call different functions. Indeed, I need the voice recognition equivalent of doing this:
WORD_LIST_ONE = ('term', 'term'...)
variable = string(input("Question?"))
if variable in WORD_LIST_ONE:
function()
So basically, what do I use to parse user speech? Also, if this systems doesn't include speech recognition, please point me to something that does.
Thanks