Hi there! For starters, let me say I am something of a Python newbie at the moment, but I'm learning more every day! Unfortunately, my script is at a standstill, and I can't figure out how to continue. I don't have an error, per se, but rather the inability to create one. :)
You see, due to my semi-lazy nature, I am creating myself a computer assistant in Python. So far, it's going swell! I can have it open programs and files, respond to simple phrases, and stuff of that sort. It can even use the Microsoft Speech API to speak verbally.
Now, my problem--- I want to be able to speak as well! At the moment, I'm using raw_input() to state commands. ("Open Firefox, please! Thanks!") Now, that works just fine, but I want to be able to use the Microsoft Speech API to not only synthesize voice, but recognize speech input as well. I already have a default Speech Recognition profile, et cetera, but I have no way to implement it into Python! I just want a function that captures voice input like raw_input() does, but as of present, I have no idea how to do that.
http://surguy.net/articles/speechrecognition.xml
I've already seen the above example, but I haven't been able to modify it to suit my needs. I want to use the built-in Microsoft dictionary, not one I define by myself.
Any help would be greatly appreciated! Thanks a lot! Unfortunately, I don't have any code examples, because I haven't made any headway on voice recognition. Sorry, and thanks!