Routine to stop dog from barking at the door

Hello!

Sometimes when my dog is home alone he is standing close to the door, listening to sounds outside and will bark if he hears something. I get notified by the Eufy app and in turn on the robot vacuum, sending it to the area in front of the door. He then moved away and stops barking.

Is there a way to automate this? Something recording a high sound and sending the roborock vacuum to a specified area perhaps? Thanks for the input

Train some Google device on ‘voice recognition’ for the dog’s bark ?

Not sure if Google can do that.

Saw some video where a camera sent a notification because it recognized the dog doing something and even described the action…

Here’s several ideas in this H.A. topic
Siri, Alexa and even a ESP32 “loud noise” code