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!