TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Live spectrogram – helpful desktop notifications in noisy surroundings

1 pointsby ravalmost 2 years ago
While I&#x27;m setting up my new home office, my temporary desk is right next to a fridge&#x2F;freezer that has a terrible low-frequency buzzing. Noise cancelling headphones are a godsend in this situation, but I don&#x27;t want to wear headphones for 8 hours straight every day.<p>Luckily the fridge&#x2F;freezer is only buzzing when the compressor is on, so I can in principle take my headphones off when the compressor is not active... But with headphones on, it&#x27;s hard to notice when the compressor stops!<p>This project shows a live spectrogram of the audio picked up by your computer microphone, using NumPy to compute the spectrogram and Pulseaudio&#x27;s parec program to record audio. There&#x27;s a companion program that listens for the noise level in the 50-55 Hz band and emits a desktop notification using notify-send when the noise levels drops below -18 dB, telling you to take off your headphones to let your ears get some rest.<p>This solves my very specific problem, but the spectrogram is somehow very soothing to watch, so I thought I would share it here. Who knows, maybe I&#x27;m not the only one with a home office right next to a noisy refrigerator!

no comments

no comments