by simonw · 2y ago · 0 comments
The phone has a Tasker script running on loop (even if
the battery dies, it’ll restart when it boots again)
Script records 10 min of audio in airplane mode, then
comes out of airplane mode and connects to nearby free
WiFi.
Then uploads the audio file to my server, which splits it
into 15 sec chunks that slightly overlap. Passes each to
Shazam’s API (not public, but someone reverse engineered
it and made a great Python package). Phone only uses 2%
of power every hour when it’s not charging!You can buy a 60,000 mAh battery (or build one) for about $50, which would buy this device 10,000 hours, or round it down and call it 1 year.
The phone has 4,000mAh, too.
I know eBikes are a massive step up from laptop batteries (seemingly better for the density too somehow?)
This little no-name 185Wh battery pack is $40 right now with the 50% coupon code and would probably work great. (I picked one up recently for another project and it actually does deliver as advertised performance.)
>when it boots again
Do any Android phones turn on automatically when sufficiently charged? The ones I've had stay switched off but with a little battery charging animation. (I think my old iPhone auto powered on when charged past a certain percentage though.)
I made a second Tasker automation, so it shuts down with less than 15 percent battery. It might still get stuck in a boot loop, but eventually the solar panel will quickly charge it above 15% so that it won’t be for very long.
or, given Pixel phones can identify audio in the background seemingly without impacting battery, are modern algorithms for identifying music from audio so efficient that shazam pays almost nothing per clip?
Now Playing has a smaller database than Shazam does but the technology would work fine with a larger database if you wanted that, which for this application you might.
However, unsurprisingly Google did not give away the technology.
Why not use a Pixel phone with on-device song matching? It also keeps history on device. Getting that data out of the app might be a little tricky, but should be possible.
There are many worse violators than this, but it is what it is.
The real harm would occur if the conversations were being stored and analysed systematically, for example by police. But the OP is not doing that (they claim).
We also know that, regardless of the degree of privacy to which people should be entitled, they're not legally entitled to much privacy in these places. Federal court rulings have been extremely clear on this point. In these places, we don't even have the right to not be photographed.
Fixing this one installation wouldn't fix all the rest (example: Shot spotter)
Apply it OP's project. The project is super cool, popular, and most of all it's done and it exists. The worst thing you can say about it is that it's not perfect and failed one weird purity test. Oh no, public audio gets sent to a server!
And honestly, as a commentary on how commonplace and normal mass surveillance has become, which this project seems to be, I quite like the threat of "there is a box out there somewhere that sends everything it hears to a server and it does this not for good or evil, but because one programmer was bored and thought what if I could know what song was playing in the cafe across the street".