EchoBind, turning a desk into a touch controller
EchoBind turns the surface of a desk into a four-zone controller using nothing but the laptop's built-in microphones. Rishabh Kataria built it as a background daemon.
How it works
- Listen. PyAudio streams stereo audio from the built-in microphones.
- Detect a knock. A sharp jump in RMS energy marks a tap.
- Describe the sound. Librosa extracts MFCCs and other spectral features from a short window around the tap. Knocks in different places sound slightly different, and the stereo pair adds left-right information.
- Classify. A Scikit-learn SVM predicts which quadrant was tapped.
- Act. Each zone triggers an OS shortcut, like opening a terminal, muting the mic or switching desktops, with filtering to avoid false triggers.
The technique is explained in classify sounds with MFCCs and an SVM.
Stack
Python, PyAudio, Librosa, Scikit-learn and PyAutoGUI.