The music fingerprinting on my Android phone works in airplane mode, so it would be possible with modifications. Also, it's likely that Shazam is sending a "hash" of the audio rather than an audio stream in most cases.
https://www.dechicchis.com/assets/Joseph-DeChicchis-Music-Id...
Like having a distinctive click impulse and get the cathedral from that.