4 ms·
I hacked together an Android app specifically for the purpose, so it doesn't really answer the original question about generally available projects. (I haven't
by mjstone 7y ago
I hacked together an Android app specifically for the purpose, so it doesn't really answer the original question about generally available projects. (I haven't got round to releasing the code as it's rather bespoke, but could do if you're interested.)
- sandGorgon 7y agothis would be very interesting!
- mjstone 7y agoCode is now on GitHub here: https://github.com/martin-stone/AndroidAudioNotifier https://github.com/martin-stone/AndroidAudioNotifier
- sprobertson 7y agoI'd be interested in the general technique, "teach a man to listen for beeps..."
- mjstone 7y agoI 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.)
- reaktion 7y agoI'd appreciate seeing your code for this - I've intended to write a similar app for listening to an old alarm system I have.
- canada_dry 7y agoThanks for sharing the code. Perhaps someone (with more patience than I for Android/Kotlin development) can tweak it so that is can listen for knocking on a door to trigger some sort of alert (email/txt/broadcast an intent). Triggering an intent would be very helpful as then it could then be acted upon by Tasker or Automagic4Android.