Edit with the gathered answers:

1-AmbientMusicMod (Android, requires root/ADB wifi)

2-Shazam Lite (unbloated modded Shazam)

3-Telegram bot

  • Someone can correct me if I’m wrong, but doesn’t Shazam’s usefulness come from its enormous database of fingerprinted music and not the fingerprinting software it uses to create it? I’m sure you could find FOSS that fingerprints music, but it would be useless without a gigantic database to search.