Dog microphone recognition

So I would like to use a nodemcu or a d1 mini and a microphone to create an automation that when my dogs bark in the middle of the night it sets off a flashing strip of LED’s in their kennel for a short period of time it would be great if I could implement this through tasmota or maybe ESPhome haven’t found anything close while searching, anyone have any ideas or pointers to a link that may achieve this type of integration? When they bark we just shout one of their names and they quiet down for an extended period of time before the next round. I was thinking alexa but it doesn’t seem to indicate that alexa can automate from a dogs bark? And unfortunately I’m not a code ninja that is why tasmota or ESPhome is needed would like to hear anyone’s experience with this type of automation

You can use https://github.com/custom-components/alexa_media_player/wiki

This will let you sent text to voice commands to the alexa ,

So you don’t need alexa to trigger from a bark (that would be cool) .

ESPhome supports microphones , something like this

Great this a an excellent starting point thank you!