Re:Ask HN: What are some interesting projects to reuse your ...
by sprobertson on Tuesday January 28, 2020 @10:45AM
(#22170400)
I'd be interested in the general technique, "teach a man to listen for beeps..."
[ Parent
| on HN ]
Re:Ask HN: What are some interesting projects to reuse your ...
by mjstone on Tuesday January 28, 2020 @11:08AM
(#22170637)
I FFT incoming sound buffers, and if the 2KHz band is the highest for a suitable number of consecutive frames, then I send the email and stop listening for a few minutes to avoid double notifications.
2KHz is the frequency of my machine's beep. Just triggering on overall noise level alone would notify me each time the machine goes into spin, but using the FFT allows it to be more discerning.
(I'll try to publish the code soon.)
Re:Ask HN: What are some interesting projects to reuse your ...
by reaktion on Tuesday January 28, 2020 @01:20PM
(#22172363)
I'd appreciate seeing your code for this - I've intended to write a similar app for listening to an old alarm system I have.
Re:Ask HN: What are some interesting projects to reuse your ...
by mjstone on Tuesday January 28, 2020 @02:55PM
(#22173420)
I've now put it on GitHub: https://github.com/martin-stone/AndroidAudioNotifier