Python Forum

Full Version: Getting help on developing a code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello everyone

i', not a professional programmer, actually my field of study is different from these stuff. btw i'm trying to learn python because i love coding.

I want to write a code that deletes half of the people in a contact list, now this is my problem:

the program is supposed to start working when an external thing outside the pc makes a noise (like a clap) and i don't have any knowledge about connecting the pc to an external switch or detector.

can anyone explain how should i start and what should I buy to do this?
pocketsphinx can be setup to trigger an event when a certain word is heard
You can train the vocabulary, so (I'm guessing here) you might be able to save a hand clap as a word,
and use it to trigger an event.
Here's a lightblub control that uses pocketsphinx.
you should be able to figure out how to do this by looking at the code here: https://github.com/ybutb/yee-voice