The basic idea is, a microphone (connected to the esp8266 (i don't know if this is possible)) records and sends the recorded audio to an AI (such as Teachable Machine) and classifies the source of the sound, if it's a dog/cat/human etc... then displays it on a website.
Any help or feedback is appreciated if this is something that can be done, or any alternatives, I'm fairly new to the whole IoT and electronics. Thank you!