Getting help on developing a code - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Getting help on developing a code (/thread-20871.html) |
Getting help on developing a code - Masoudk96 - Sep-04-2019 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? RE: Getting help on developing a code - Larz60+ - Sep-04-2019 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 |