Nathan Ladwig has got the ESP32 decoding SPDIF quite effectively, using an onboard peripheral outside its traditional remit. The project allows an ESP32 to work as a USB audio device or take an S/PDIF signal as input, and then transmitting that audio stream over RTP.
Apply sound data-based anomalous behavior detection, diagnose the root cause via object detection concurrently, and inform the user via SMS.