Hasty Briefsbeta

Bilingual

Show HN: Open a browser by clapping twice (inspired by Iron Man)

a year ago
  • #sound-detection
  • #automation
  • #python
  • Open Chrome or any app by clapping twice, inspired by Tony Stark.
  • Analyzed clap sound using Fourier transform, finding energy concentrated at 1.4kHz to 1.8kHz.
  • Implemented a bandpass filter to isolate clap sounds and ignore noise.
  • Used peak detection to recognize claps in real time.
  • System launches Chrome or any defined command upon detecting two claps with minimum spacing.
  • Required libraries include numpy, pyaudio, scipy, pywin32, PyAudio, pygame, SpeechRecognition, dotenv, gTTS, langchain, langchain-core, langchain-google, and scipy.
  • Reminder to set Google API key in a .env file, available under Google's free tier.