I know this is a long shot and a weird question. My wife has always snored, but over the last few months it has become progressively louder. So bad in fact that a few nights a week I am having to sleep in one of our guest rooms to get some sleep. We have an appt setup for her next week with an ENT doctor.
We have tried all the normal nose plugs, pillow prop etc. with not much change at all.
I know Alexa has a “listen for snoring” function so I’m figuring we might be able to use that and tie it into HA to fire off something to help. Maybe some kind of automation to “nudge” her when she is snoring? Or at the very least keep track of the time a duration of her snoring.
KY-037 Sound Sensor High Sensitivity Microphone Detection Module
Connect one of these in ESPHome as a binary sensor and it will be able to detect loud sounds. If you look at a graph over time you will get idea of the times. Set a good debounce time and an incremental counter and you could work out the length of time the loud sound was detected.