I have a short (~1 second) arbitrary sound file and two devices. At some unknown time, device 1 will play the sound file out of its speaker. Device 2 should then be able to detect that sound. There may be background noise. It's unknown how loud the sound will be played.
This feels like it should be a common solved problem, but searching for answers has left me with nothing.
If anyone has good a solution or could just point me in the right direction I'd be very grateful.