please help the newbie!

D

dpickles

In my Python research, I have found a nice little voice recognition
script on the internet that does exactly what I need, and the demo
recognizes phrases with pretty much 100%accuracy.
The script can be found here:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/93025

What I want to do is make this code into a module, so I can use it in
other programs. For example:

import voicerecognition as vr
vr.StartRecognition(["one", "two", "three"])
result = vr.GetRecognized()
if result == "one":
print "You said: one"
else:
print "You did not say 'one'."


Any help would be appreciated. I have tried this, but IDLE keeps
freezing whenever I try to use the module with a test script.
As I said, I am a newbie and do not know very much about classes,
instances, and all those __funky__ modules.

Can anybody give me some tips on turning this into a module???
Thank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top