How do I play a text to speech on my security cam

I bought this camera a few months ago, and using Tuya, I can activate the microphone.
So, I thought of creating automation in HA so that when the camera detects motion at irregular times, it will play a message to scare the person, something like “unauthorized movement detected, an alert was sent to …” When I tried to create the automation, I couldn’t find a way to activate the microphone. Do you have any idea how to do it?